Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-06-26 17:17:27 +0400
committerStefano Sabatini <stefasab@gmail.com>2013-06-27 02:20:20 +0400
commita334b00cf62c78d5f7a144c3b9b8c5aee5a04659 (patch)
tree979282763ba1e93010408078c78e1fee66214443 /ffprobe.c
parent205092bf478f444fb8e6f4d0f45f07fac27be352 (diff)
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>
Diffstat (limited to 'ffprobe.c')
-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;
}