[FFmpeg-devel] [PATCH] avcodec/avcodec: Limit the number of side data elements per packet
Clément Bœsch
u at pkh.me
Thu May 11 14:57:01 EEST 2017
On Thu, May 11, 2017 at 01:01:36PM +0200, Michael Niedermayer wrote:
> Fixes: 1293/clusterfuzz-testcase-minimized-6054752074858496
>
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
> libavcodec/avcodec.h | 8 ++++++++
> libavcodec/avpacket.c | 5 ++++-
> 2 files changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index df6d2bc748..173c083a86 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -1593,6 +1593,14 @@ enum AVPacketSideDataType {
> * AVContentLightMetadata struct.
> */
> AV_PKT_DATA_CONTENT_LIGHT_LEVEL,
> +
> + /**
> + * The number of side data elements (in fact a bit more than it).
> + * This is not part of the public API/ABI in the sense that it may
> + * change when new side data types are added.
> + * This must stay the last enum value.
> + */
> + AV_PKT_DATA_NB,
if it's supposed to always be the last value, you can drop the trailing
comma.
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170511/956e9590/attachment.sig>
More information about the ffmpeg-devel
mailing list