diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-05 17:14:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-05 20:48:23 +0200 |
commit | dcb29d37d4ffedc84e44df99f8d22ecf27e0f2cd (patch) | |
tree | ae7410e604258f0c222eae29a6e3b65a5df8f623 /libavcodec/mpegvideo.c | |
parent | 4dee4a4470cd28132cc9c96e00a6cc1080a4b27f (diff) | |
download | ffmpeg-dcb29d37d4ffedc84e44df99f8d22ecf27e0f2cd.tar.gz |
avcodec/mpegvideo: set codec tags in ff_mpv_decode_init()
Fixes Ticket3912
Reviewed-by: Benoit Fouet <benoit.fouet@free.fr>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index f5306cb3b2..41a879915d 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1119,6 +1119,10 @@ void ff_mpv_decode_init(MpegEncContext *s, AVCodecContext *avctx) s->flags = avctx->flags; s->flags2 = avctx->flags2; + /* convert fourcc to upper case */ + s->codec_tag = avpriv_toupper4(avctx->codec_tag); + + s->stream_codec_tag = avpriv_toupper4(avctx->stream_codec_tag); } static int init_er(MpegEncContext *s) @@ -1331,10 +1335,6 @@ av_cold int ff_mpv_common_init(MpegEncContext *s) &s->chroma_x_shift, &s->chroma_y_shift); - /* convert fourcc to upper case */ - s->codec_tag = avpriv_toupper4(s->avctx->codec_tag); - - s->stream_codec_tag = avpriv_toupper4(s->avctx->stream_codec_tag); FF_ALLOCZ_OR_GOTO(s->avctx, s->picture, MAX_PICTURE_COUNT * sizeof(Picture), fail); |