From 5997285d3a20a4b14a3525220679637823a5ee45 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Thu, 5 Jul 2012 21:00:00 +0200 Subject: [PATCH] ffmpeg: poll filters even after -t limit. If not, frames can still arrive to the sink and accumulate. The frames past recording time will be ignored in do_*_out. --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 2fa8acb8df..cf53b91f0e 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1948,7 +1948,7 @@ static int poll_filters(void) avcodec_get_frame_defaults(ost->filtered_frame); filtered_frame = ost->filtered_frame; - while (!ost->is_past_recording_time) { + while (1) { ret = av_buffersink_get_buffer_ref(ost->filter->filter, &picref, AV_BUFFERSINK_FLAG_NO_REQUEST); if (ret < 0) {