[FFmpeg-cvslog] ffprobe: always exit 1 in case of errors

Stefano Sabatini git at videolan.org
Thu Jun 27 00:26:43 CEST 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Jun 27 00:13:41 2013 +0200| [5c616fe48bf65a04a8a708848414f7c2b9c928f7] | committer: Stefano Sabatini

ffprobe: always exit 1 in case of errors

This is consistent with the other ff* tools, and also avoids spurious
success reports when ret%256 = 0.

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

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

diff --git a/ffprobe.c b/ffprobe.c
index 735eb64..28c954d 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2359,5 +2359,5 @@ end:
 
     avformat_network_deinit();
 
-    return ret;
+    return ret < 0;
 }



More information about the ffmpeg-cvslog mailing list