avcodec: properly initialize AVCodecParameters profile/level

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
pull/193/merge
Hendrik Leppkes 9 years ago committed by Derek Buitenhuis
parent 4b150fbe1f
commit 994412fb9b
  1. 2
      libavcodec/utils.c

@ -3716,6 +3716,8 @@ static void codec_parameters_reset(AVCodecParameters *par)
par->color_space = AVCOL_SPC_UNSPECIFIED;
par->chroma_location = AVCHROMA_LOC_UNSPECIFIED;
par->sample_aspect_ratio = (AVRational){ 0, 1 };
par->profile = FF_PROFILE_UNKNOWN;
par->level = FF_LEVEL_UNKNOWN;
}
AVCodecParameters *avcodec_parameters_alloc(void)

Loading…
Cancel
Save