[FFmpeg-devel] [PATCH 1/2] avfilter: add thistogram video filter

James Almer jamrial at gmail.com
Fri Dec 27 17:12:45 EET 2019


On 12/26/2019 5:25 PM, Paul B Mahol wrote:
> +    if (s->thistogram)
> +        return ff_filter_frame(outlink, av_frame_clone(out));

av_frame_clone() can fail to allocate an AVFrame struct and return NULL,
which will make ff_filter_frame() crash as it doesn't expect frame to be
NULL.

> +    else
> +        return ff_filter_frame(outlink, out);



More information about the ffmpeg-devel mailing list