[FFmpeg-devel] [PATCH] libavcodec/h264_parse: don't use uninitialized value when chroma_format_idc==0

Michael Niedermayer michael at niedermayer.cc
Fri Sep 8 03:49:21 EEST 2017

On Thu, Sep 07, 2017 at 09:42:07AM -0400, Mark Wachsler wrote:
> When parsing a monochrome file, chroma_log2_weight_denom was used without
> being initialized, which could lead to a bogus error message being printed, e.g.
>   [h264 @ 0x61a000026480] chroma_log2_weight_denom 24576 is out of range
> It also could led to warnings using AddressSanitizer.
> ---
>  libavcodec/h264_parse.c | 27 +++++++++++++++------------
>  1 file changed, 15 insertions(+), 12 deletions(-)



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- 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/20170908/b26e9bba/attachment.sig>

More information about the ffmpeg-devel mailing list