mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-24 15:57:00 +00:00
sink_buffer: prevent prematurely freeing of cur_buf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1890853976
commit
dc49105c7f
@ -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…
Reference in New Issue
Block a user