[FFmpeg-devel] [PATCH 1/2] avcodec: properly initialize AVCodecParameters profile/level
wm4
nfxjfg at googlemail.com
Fri Apr 1 13:47:29 CEST 2016
On Fri, 1 Apr 2016 13:13:02 +0200
Hendrik Leppkes <h.leppkes at gmail.com> wrote:
> ---
> 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)
LGTM
More information about the ffmpeg-devel
mailing list