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);

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to