[FFmpeg-devel] [PATCH] avfilter/avfilter: fix OOM case for default activate
Nicolas George
george at nsup.org
Wed Dec 6 15:13:01 EET 2023
Paul B Mahol (12023-12-01):
> From 2ea2a0df61cbd5519a1c1e88be27a3f8eb883aac Mon Sep 17 00:00:00 2001
> From: Paul B Mahol <onemda at gmail.com>
> Date: Fri, 1 Dec 2023 16:59:07 +0100
> Subject: [PATCH] avfilter/avfilter: fix OOM case for default activate
>
> Fixes OOM when caller keeps adding frames into filtergraph
> that reached EOF by other means, for example EOF is signalled
> by other filter in filtergraph or by buffersink.
>
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
> libavfilter/avfilter.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
Looks correct. Good catch.
I am assuming it is enough to fix the issue you wanted to fix by turning
buffersrc to activate. If not, please share the test case you use.
--
Nicolas George
More information about the ffmpeg-devel
mailing list