From 4ff77d44512100b8b1258b98491776755f45d30b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 14 Jan 2014 04:32:05 +0100 Subject: [PATCH] ffmpeg: check ost->finished in check_output_constraints() No testcase but it seems logic to stop when finished is set Signed-off-by: Michael Niedermayer --- ffmpeg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 9cc722fb00..7907f97766 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1407,6 +1407,9 @@ static int check_output_constraints(InputStream *ist, OutputStream *ost) if (ost->source_index != ist_index) return 0; + if (ost->finished) + return 0; + if (of->start_time != AV_NOPTS_VALUE && ist->pts < of->start_time) return 0;