aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-14 18:38:35 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-14 19:25:15 +0100
commit0d5c810bd59abed01f8e70ee956897599eaaea25 (patch)
treec62fa40fb932ce4fbd0dfe39f7ec201ddad7b4bf
parentb26f0ee39fed503a05dcbc870ea20bce1ca9caf5 (diff)
downloadffmpeg-0d5c810bd59abed01f8e70ee956897599eaaea25.tar.gz
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: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mpeg12.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 2677713cce..831ea92bb5 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -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;