[FFmpeg-cvslog] fftools/ffprobe: fix handling parse_options() return value

Anton Khirnov git at videolan.org
Fri Jul 28 15:11:53 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jul 26 17:31:38 2023 +0200| [e8777221f27401b8540e9a41aea4f6e55263fc65] | committer: James Almer

fftools/ffprobe: fix handling parse_options() return value

Reviewed-by: James Almer <jamrial at gmail.com>
Reviewed-by: Marton Balint <cus at passwd.hu>
Signed-off-by: James Almer <jamrial at gmail.com>

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

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

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;
     }
 



More information about the ffmpeg-cvslog mailing list