[FFmpeg-cvslog] avcodec: properly initialize AVCodecParameters profile/level
Hendrik Leppkes
git at videolan.org
Sat Apr 2 23:48:35 CEST 2016
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Apr 1 13:13:02 2016 +0200| [994412fb9b07dd3d012a76f480f4f5e0cfa883cc] | committer: Derek Buitenhuis
avcodec: properly initialize AVCodecParameters profile/level
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=994412fb9b07dd3d012a76f480f4f5e0cfa883cc
---
libavcodec/utils.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 23d9622..42e5e7c 100644
--- a/libavcodec/utils.c
+++ b/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)
More information about the ffmpeg-cvslog
mailing list