forked from FFmpeg/FFmpeg
ffmpeg: check ost->finished in reap_filters()
This avoids finished output streams continuing to receive frames Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ed7f1a5c20
commit
7d91fb305e
1 changed files with 4 additions and 0 deletions
4
ffmpeg.c
4
ffmpeg.c
|
@ -1093,6 +1093,10 @@ static int reap_filters(void)
|
|||
}
|
||||
break;
|
||||
}
|
||||
if (ost->finished) {
|
||||
av_frame_unref(filtered_frame);
|
||||
continue;
|
||||
}
|
||||
frame_pts = AV_NOPTS_VALUE;
|
||||
if (filtered_frame->pts != AV_NOPTS_VALUE) {
|
||||
int64_t start_time = (of->start_time == AV_NOPTS_VALUE) ? 0 : of->start_time;
|
||||
|
|
Loading…
Add table
Reference in a new issue