Browse Source

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>
tags/n3.0
Michael Niedermayer 10 years ago
parent
commit
9b4dd0f876
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/mpeg12dec.c

+ 1
- 0
libavcodec/mpeg12dec.c View File

@@ -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