[FFmpeg-devel] [PATCH 1/2] avcodec: properly initialize AVCodecParameters profile/level

Hendrik Leppkes h.leppkes at gmail.com
Fri Apr 1 13:13:02 CEST 2016


---
 libavcodec/utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f991135..df30d57 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -3713,6 +3713,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)
-- 
2.7.2.windows.1



More information about the ffmpeg-devel mailing list