[FFmpeg-devel] [PATCH 2/3] ffmpeg: check ost->finished in check_output_constraints()

Michael Niedermayer michaelni at gmx.at
Tue Jan 14 04:40:40 CET 2014


No testcase but it seems logic to stop when finished is set

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffmpeg.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index e2424ad..5831a78 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;
 
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list