[FFmpeg-devel] [PATCH] ffprobe: fix exit code with stream specifiers.
Nicolas George
nicolas.george at normalesup.org
Wed Jun 26 15:17:27 CEST 2013
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;
}
--
1.7.10.4
More information about the ffmpeg-devel
mailing list