summaryrefslogtreecommitdiff
path: root/fftools/ffprobe.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-07-26 17:31:38 +0200
committerJames Almer <jamrial@gmail.com>2023-07-28 09:11:26 -0300
commite8777221f27401b8540e9a41aea4f6e55263fc65 (patch)
tree5c1ab0e8aa56788f98f0cdd43d8f2730882e1235 /fftools/ffprobe.c
parenta7a46aff463ca88ea719dc51a99a334b1aaae145 (diff)
fftools/ffprobe: fix handling parse_options() return value
Reviewed-by: James Almer <jamrial@gmail.com> Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/ffprobe.c')
-rw-r--r--fftools/ffprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index a39185f6fe..81610c097b 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -4113,7 +4113,7 @@ int main(int argc, char **argv)
show_banner(argc, argv, options);
ret = parse_options(NULL, argc, argv, options, opt_input_file);
if (ret < 0) {
- ret = AVERROR_EXIT ? 0 : ret;
+ ret = (ret == AVERROR_EXIT) ? 0 : ret;
goto end;
}