avcodec: properly initialize AVCodecParameters profile/level
authorHendrik Leppkes <h.leppkes@gmail.com>
Fri, 1 Apr 2016 11:13:02 +0000 (13:13 +0200)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Sat, 2 Apr 2016 21:48:03 +0000 (22:48 +0100)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/utils.c

index 23d9622..42e5e7c 100644 (file)
@@ -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)