You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
sink_buffer: prevent prematurely freeing of cur_buf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user