[FFmpeg-devel] [PATCH 2/2] lavfi/framesync: remove an invalid free.
Nicolas George
george at nsup.org
Tue Jan 2 15:58:14 EET 2018
Signed-off-by: Nicolas George <george at nsup.org>
---
libavfilter/framesync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Not actually experienced a problem, but similar to Derek's fix.
diff --git a/libavfilter/framesync.c b/libavfilter/framesync.c
index 82d715750c..da12c58a61 100644
--- a/libavfilter/framesync.c
+++ b/libavfilter/framesync.c
@@ -406,7 +406,7 @@ int ff_framesync_dualinput_get_writable(FFFrameSync *fs, AVFrame **f0, AVFrame *
ret = ff_inlink_make_frame_writable(fs->parent->inputs[0], f0);
if (ret < 0) {
av_frame_free(f0);
- av_frame_free(f1);
+ *f1 = NULL;
return ret;
}
return 0;
--
2.15.1
More information about the ffmpeg-devel
mailing list