[FFmpeg-devel] [PATCH 3/3] h264: improve checks before calling ff_h264_decode_extradata

Michael Niedermayer michaelni at gmx.at
Sat Sep 24 22:50:16 CEST 2011

On Sat, Sep 24, 2011 at 08:37:50PM +0200, Alexander Strasser wrote:
>   The ff_h264_decode_extradata routine now checks for the buffer size
> and pointer internally. This makes it possible to remove the external
> checks in ff_h264_decode_init.
>   In decode_frame there was a size check missing because the buffer
> gets tested prior to the invocation of ff_h264_decode_extradata().
> ---
>  libavcodec/h264.c |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110924/73f8dcd1/attachment.asc>

More information about the ffmpeg-devel mailing list