[FFmpeg-devel] [PATCH] lavfi/dualinput: fix shortest option.

Nicolas George george at nsup.org
Sat Jan 18 00:37:04 CET 2014


Fix trac ticket #3315.

Signed-off-by: Nicolas George <george at nsup.org>
---
 libavfilter/dualinput.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


(I believe in[0].after was EXT_STOP by default until I realized repeatlast
was on by default, and I forgot to change it correspondingly.)


diff --git a/libavfilter/dualinput.c b/libavfilter/dualinput.c
index 97e15cb..88f7a27 100644
--- a/libavfilter/dualinput.c
+++ b/libavfilter/dualinput.c
@@ -57,7 +57,7 @@ int ff_dualinput_init(AVFilterContext *ctx, FFDualInputContext *s)
     in[1].after  = EXT_INFINITY;
 
     if (s->shortest)
-        in[1].after = EXT_STOP;
+        in[0].after = in[1].after = EXT_STOP;
     if (!s->repeatlast) {
         in[0].after = EXT_STOP;
         in[1].sync  = 0;
-- 
1.8.5.2



More information about the ffmpeg-devel mailing list