Commit 9b4dd0f8 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg12dec: Initialize chroma_format to 1

This ensures that chroma format is never set to an invalid value
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent cb1da9fb
......@@ -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;
......
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