]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/dualinput.c
avfilter/dualinput: fix repeatlast to match docs and eof_action=pass
[ffmpeg] / libavfilter / dualinput.c
index 97e15cbe0197262aaee63295cb95f59a66d79ed7..45f681078d342560a1605216c663a8efe043a6fd 100644 (file)
@@ -57,9 +57,9 @@ 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].after = EXT_NULL;
         in[1].sync  = 0;
     }