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>
pull/118/merge
Michael Niedermayer 10 years ago
parent cb1da9fb8d
commit 9b4dd0f876
  1. 1
      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;

Loading…
Cancel
Save