mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
be023405a7
commit
a764402394
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user