[FFmpeg-devel] [PATCH 1/2] avcodec: properly initialize AVCodecParameters profile/level
Michael Niedermayer
michael at niedermayer.cc
Fri Apr 1 15:04:24 CEST 2016
On Fri, Apr 01, 2016 at 01:13:02PM +0200, Hendrik Leppkes 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
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160401/813e3ad9/attachment.sig>
More information about the ffmpeg-devel
mailing list