[FFmpeg-devel] [PATCH] ffprobe: fix exit code with stream specifiers.

Stefano Sabatini stefasab at gmail.com
Thu Jun 27 00:27:26 CEST 2013


On date Wednesday 2013-06-26 15:17:27 +0200, Nicolas George encoded:
> Without this fix, ffprobe would exit with a failure exit
> code if a stream specifier is given that selects the last
> stream.
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  ffprobe.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/ffprobe.c b/ffprobe.c
> index 98c4a49..af64057 100644
> --- a/ffprobe.c
> +++ b/ffprobe.c
> @@ -1918,6 +1918,7 @@ static int probe_file(WriterContext *wctx, const char *filename)
>                      goto end;
>                  else
>                      selected_streams[i] = ret;
> +                ret = 0;
>              } else {
>                  selected_streams[i] = 1;
>              }

Thanks applied.
-- 
FFmpeg = Fiendish Fundamental Moronic Pure Educated Gargoyle


More information about the ffmpeg-devel mailing list