aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-06-27 00:13:41 +0200
committerStefano Sabatini <stefasab@gmail.com>2013-06-27 00:20:36 +0200
commit5c616fe48bf65a04a8a708848414f7c2b9c928f7 (patch)
treefd9d4f143f5454deb1d1c6199a7be90e9ac5c772 /ffprobe.c
parent1fc626f8d072b67e8f6b63e38f51c1ca051c42ff (diff)
downloadffmpeg-5c616fe48bf65a04a8a708848414f7c2b9c928f7.tar.gz
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.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 735eb64b4c..28c954daae 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2359,5 +2359,5 @@ end:
avformat_network_deinit();
- return ret;
+ return ret < 0;
}