sink_buffer: prevent prematurely freeing of cur_buf

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/28/head
Michael Niedermayer 12 years ago
parent 1890853976
commit dc49105c7f
  1. 1
      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,

Loading…
Cancel
Save