[FFmpeg-cvslog] sink_buffer: prevent prematurely freeing of cur_buf

Michael Niedermayer git at videolan.org
Sat Jul 21 22:32:09 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jul 21 21:39:11 2012 +0200| [dc49105c7f268581b914a9d2c6290fd74db286a4] | committer: Michael Niedermayer

sink_buffer: prevent prematurely freeing of cur_buf

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/sink_buffer.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c
index 608a887..31e0a98 100644
--- a/libavfilter/sink_buffer.c
+++ b/libavfilter/sink_buffer.c
@@ -115,6 +115,7 @@ static void end_frame(AVFilterLink *inlink)
     /* cache frame */
     av_fifo_generic_write(buf->fifo,
                           &inlink->cur_buf, sizeof(AVFilterBufferRef *), NULL);
+    inlink->cur_buf = NULL;
     if (buf->warning_limit &&
         av_fifo_size(buf->fifo) / sizeof(AVFilterBufferRef *) >= buf->warning_limit) {
         av_log(ctx, AV_LOG_WARNING,



More information about the ffmpeg-cvslog mailing list