[FFmpeg-devel] [PATCH 2/2] vf_paletteuse: Don't free the second frame from ff_framesync_dualinput_get_writable on error

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon Jan 1 18:28:37 EET 2018

This fixes a double free in he error case.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
This does fix the double free, but I am unsure if it is the correct free
to removed to fix it. Comments welcome.
 libavfilter/vf_paletteuse.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavfilter/vf_paletteuse.c b/libavfilter/vf_paletteuse.c
index ede2e2e..c2d0c6b 100644
--- a/libavfilter/vf_paletteuse.c
+++ b/libavfilter/vf_paletteuse.c
@@ -1037,7 +1037,6 @@ static int load_apply_palette(FFFrameSync *fs)
-    av_frame_free(&second);
     return ret;

More information about the ffmpeg-devel mailing list