diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-21 23:39:11 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-22 00:17:36 +0400 |
commit | dc49105c7f268581b914a9d2c6290fd74db286a4 (patch) | |
tree | 2af3f0801ed8c372f4eaac9931cb101434d4caf8 /libavfilter/sink_buffer.c | |
parent | 1890853976a8076ca12de7d6662d6fba255597f3 (diff) |
sink_buffer: prevent prematurely freeing of cur_buf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/sink_buffer.c')
-rw-r--r-- | libavfilter/sink_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c index 608a8876c2..31e0a98772 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, |