[FFmpeg-cvslog] lavfi/framesync: remove an invalid free.

Nicolas George git at videolan.org
Wed Jan 3 21:02:40 EET 2018


ffmpeg | branch: master | Nicolas George <george at nsup.org> | Tue Jan  2 14:51:18 2018 +0100| [29b5f3115d9f217758bebd1d00e541aa3e739d2a] | committer: Nicolas George

lavfi/framesync: remove an invalid free.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29b5f3115d9f217758bebd1d00e541aa3e739d2a
---

 libavfilter/framesync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list