[FFmpeg-cvslog] ffmpeg: poll filters even after -t limit.
Nicolas George
git at videolan.org
Fri Jul 6 18:48:59 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Jul 5 21:00:00 2012 +0200| [5997285d3a20a4b14a3525220679637823a5ee45] | committer: Nicolas George
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5997285d3a20a4b14a3525220679637823a5ee45
---
ffmpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 2fa8acb..cf53b91 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) {
More information about the ffmpeg-cvslog
mailing list