diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-24 20:44:24 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-24 20:59:58 +0400 |
commit | 7495186fd49f6c9e701e387c2669e3f39b8900ab (patch) | |
tree | 41333941d0b3cfc01c50538753156f532292a9cf /libavcodec/h263dec.c | |
parent | 6067186f3a76691bc2c825c40312dc12a7483c0e (diff) |
avcodec/h263dec: fix aspect of lead h263 EHC
Fixes part of ticket925
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index faa54f57e1..626be97357 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -113,6 +113,9 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) s->codec_id= avctx->codec->id; avctx->hwaccel= ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt); + if (avctx->stream_codec_tag == AV_RL32("l263") && 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 && avctx->codec->id != AV_CODEC_ID_H263P && avctx->codec->id != AV_CODEC_ID_MPEG4) if ((ret = ff_MPV_common_init(s)) < 0) |