summaryrefslogtreecommitdiff
path: root/libavcodec/libopenh264dec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2016-07-08 23:21:41 +0300
committerMartin Storsjö <martin@martin.st>2016-07-09 22:33:58 +0300
commitd825b1a5306576dcd0553b7d0d24a3a46ad92864 (patch)
tree206f098f5cd60b587ea46de13c2239ce46b51369 /libavcodec/libopenh264dec.c
parent4f7723cb3b913c577842a5bb088c804ddacac8df (diff)
downloadffmpeg-d825b1a5306576dcd0553b7d0d24a3a46ad92864.tar.gz
libopenh264: Support building with the 1.6 release
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/libopenh264dec.c')
-rw-r--r--libavcodec/libopenh264dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/libopenh264dec.c b/libavcodec/libopenh264dec.c
index 2e8f52a26f..cdbea7be57 100644
--- a/libavcodec/libopenh264dec.c
+++ b/libavcodec/libopenh264dec.c
@@ -90,7 +90,9 @@ static av_cold int svc_decode_init(AVCodecContext *avctx)
(*s->decoder)->SetOption(s->decoder, DECODER_OPTION_TRACE_CALLBACK, (void *)&callback_function);
(*s->decoder)->SetOption(s->decoder, DECODER_OPTION_TRACE_CALLBACK_CONTEXT, (void *)&avctx);
+#if !OPENH264_VER_AT_LEAST(1, 6)
param.eOutputColorFormat = videoFormatI420;
+#endif
param.eEcActiveIdc = ERROR_CON_DISABLE;
param.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_DEFAULT;