summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-07-05 21:00:00 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-07-06 18:33:48 +0200
commit5997285d3a20a4b14a3525220679637823a5ee45 (patch)
treefed34a22486b0a71464f01be6c8824a907a19826 /ffmpeg.c
parent665100c2f1b72d6b3dd89a448b69fab73d344f5d (diff)
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.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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) {