You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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.
This commit is contained in:
2
ffmpeg.c
2
ffmpeg.c
@@ -1948,7 +1948,7 @@ static int poll_filters(void)
|
|||||||
avcodec_get_frame_defaults(ost->filtered_frame);
|
avcodec_get_frame_defaults(ost->filtered_frame);
|
||||||
filtered_frame = 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,
|
ret = av_buffersink_get_buffer_ref(ost->filter->filter, &picref,
|
||||||
AV_BUFFERSINK_FLAG_NO_REQUEST);
|
AV_BUFFERSINK_FLAG_NO_REQUEST);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Reference in New Issue
Block a user