aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-06-26 15:17:27 +0200
committerStefano Sabatini <stefasab@gmail.com>2013-06-27 00:20:20 +0200
commita334b00cf62c78d5f7a144c3b9b8c5aee5a04659 (patch)
tree979282763ba1e93010408078c78e1fee66214443
parent205092bf478f444fb8e6f4d0f45f07fac27be352 (diff)
downloadffmpeg-a334b00cf62c78d5f7a144c3b9b8c5aee5a04659.tar.gz
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 <nicolas.george@normalesup.org>
-rw-r--r--ffprobe.c1
1 files changed, 1 insertions, 0 deletions
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;
}