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
4
ffmpeg.c
4
ffmpeg.c
@ -1093,6 +1093,10 @@ static int reap_filters(void)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (ost->finished) {
|
||||||
|
av_frame_unref(filtered_frame);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
frame_pts = AV_NOPTS_VALUE;
|
frame_pts = AV_NOPTS_VALUE;
|
||||||
if (filtered_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;
|
int64_t start_time = (of->start_time == AV_NOPTS_VALUE) ? 0 : of->start_time;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user