Commit 0d5c810b authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg12dec: check uppercased codec_tag.

We do this for all other codec_tag checks in mpegvideo*/h26*
doing it here too makes the code more consistent.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b26f0ee3
......@@ -2268,7 +2268,8 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
return buf_size;
}
if (s->mpeg_enc_ctx_allocated == 0 && avctx->codec_tag == AV_RL32("VCR2"))
s2->codec_tag = avpriv_toupper4(avctx->codec_tag);
if (s->mpeg_enc_ctx_allocated == 0 && s2->codec_tag == AV_RL32("VCR2"))
vcr2_init_sequence(avctx);
s->slice_count = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment