diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-27 16:52:22 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-27 17:03:42 +0100 |
commit | a76440239428190a6a5b303f0e87a7e1ae2cc881 (patch) | |
tree | c388c14152f72acf092022d12cab38c800ff9e2d /libavcodec/h263dec.c | |
parent | be023405a7cdbdd6b5d163de8beb1968ee4ef52e (diff) | |
download | ffmpeg-a76440239428190a6a5b303f0e87a7e1ae2cc881.tar.gz |
avcodec/h263dec: Try to use codec_tag instead of the stream_codec_tag
If this causes problems then the stream_codec_tag should be enabled again
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 4ef7825f0c..a1981a3cf8 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -117,8 +117,9 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) } s->codec_id = avctx->codec->id; - if (avctx->stream_codec_tag == AV_RL32("l263") && avctx->extradata_size == 56 && avctx->extradata[0] == 1) - s->ehc_mode = 1; + if (avctx->codec_tag == AV_RL32("L263") || avctx->codec_tag == AV_RL32("S263")) + if (avctx->extradata_size == 56 && avctx->extradata[0] == 1) + s->ehc_mode = 1; /* for h263, we allocate the images after having read the header */ if (avctx->codec->id != AV_CODEC_ID_H263 && |