diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-30 21:16:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-30 21:51:16 +0200 |
commit | 9b4dd0f87696353f10778d4c0ba80d9949c6fbca (patch) | |
tree | 98eb79e4b4fa5aba4df502180e35d4ce07a2c0c3 /libavcodec/mpeg12dec.c | |
parent | cb1da9fb8d71bb611a7b0028914c97afc3f5711d (diff) | |
download | ffmpeg-9b4dd0f87696353f10778d4c0ba80d9949c6fbca.tar.gz |
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@niedermayer.cc>
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r-- | libavcodec/mpeg12dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 5d916d12ef..21ccf6ca25 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; |