From a334b00cf62c78d5f7a144c3b9b8c5aee5a04659 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Wed, 26 Jun 2013 15:17:27 +0200 Subject: ffprobe: fix exit code with stream specifiers 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 --- ffprobe.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ffprobe.c') diff --git a/ffprobe.c b/ffprobe.c index d2a682b23a..d8bc202dbf 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -1921,6 +1921,7 @@ static int probe_file(WriterContext *wctx, const char *filename) goto end; else selected_streams[i] = ret; + ret = 0; } else { selected_streams[i] = 1; } -- cgit v1.2.3