ffmpeg: poll filters even after -t limit.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 5 Jul 2012 19:00:00 +0000 (21:00 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Fri, 6 Jul 2012 16:33:48 +0000 (18:33 +0200)
If not, frames can still arrive to the sink and accumulate.
The frames past recording time will be ignored in do_*_out.

ffmpeg.c

index 2fa8acb..cf53b91 100644 (file)
--- 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) {