[FFmpeg-cvslog] avcodec/mpeg12dec: Initialize chroma_format to 1
Michael Niedermayer
git at videolan.org
Wed Sep 30 22:15:30 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Sep 30 21:16:29 2015 +0200| [9b4dd0f87696353f10778d4c0ba80d9949c6fbca] | committer: Michael Niedermayer
avcodec/mpeg12dec: Initialize chroma_format to 1
This ensures that chroma format is never set to an invalid value
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b4dd0f87696353f10778d4c0ba80d9949c6fbca
---
libavcodec/mpeg12dec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 5d916d1..21ccf6c 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -1130,6 +1130,7 @@ static av_cold int mpeg_decode_init(AVCodecContext *avctx)
ff_mpeg12_common_init(&s->mpeg_enc_ctx);
ff_mpeg12_init_vlcs();
+ s2->chroma_format = 1;
s->mpeg_enc_ctx_allocated = 0;
s->mpeg_enc_ctx.picture_number = 0;
s->repeat_field = 0;
More information about the ffmpeg-cvslog
mailing list