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

Stefano Sabatini stefasab at gmail.com
Sun Jan 19 12:33:02 CET 2014


On date Saturday 2014-01-18 00:37:04 +0100, Nicolas George encoded:
> 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;

Should be OK if works, thanks.
-- 
FFmpeg = Furious and Fiendish Mortal Powerful Elected Gadget


More information about the ffmpeg-devel mailing list