[FFmpeg-cvslog] ffprobe: fix exit code with stream specifiers

Nicolas George git at videolan.org
Thu Jun 27 00:26:42 CEST 2013


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Wed Jun 26 15:17:27 2013 +0200| [a334b00cf62c78d5f7a144c3b9b8c5aee5a04659] | committer: Stefano Sabatini

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 at normalesup.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a334b00cf62c78d5f7a144c3b9b8c5aee5a04659
---

 ffprobe.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffprobe.c b/ffprobe.c
index d2a682b..d8bc202 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;
             }



More information about the ffmpeg-cvslog mailing list