diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-07-05 21:00:00 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-07-06 18:33:48 +0200 |
commit | 5997285d3a20a4b14a3525220679637823a5ee45 (patch) | |
tree | fed34a22486b0a71464f01be6c8824a907a19826 /ffmpeg.c | |
parent | 665100c2f1b72d6b3dd89a448b69fab73d344f5d (diff) | |
download | ffmpeg-5997285d3a20a4b14a3525220679637823a5ee45.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |