|
|
@ -113,6 +113,9 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) |
|
|
|
s->codec_id= avctx->codec->id; |
|
|
|
s->codec_id= avctx->codec->id; |
|
|
|
avctx->hwaccel= ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt); |
|
|
|
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 */ |
|
|
|
/* 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 (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) |
|
|
|
if ((ret = ff_MPV_common_init(s)) < 0) |
|
|
|