diff mbox series

[FFmpeg-devel,43/47] fftools/ffplay: replace report_and_exit() with returning an error code

Message ID 20230715104611.17902-43-anton@khirnov.net
State Accepted
Commit 78699923ac8ab8c2de1ba64c464385a9e12258ed
Headers show
Series [FFmpeg-devel,01/47] fftools/ffmpeg_mux_init: handle pixel format endianness | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov July 15, 2023, 10:46 a.m. UTC
---
 fftools/ffplay.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index a491fdd9e3..5212ad053e 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -2784,8 +2784,12 @@  static int read_thread(void *arg)
         int orig_nb_streams = ic->nb_streams;
 
         err = setup_find_stream_info_opts(ic, codec_opts, &opts);
-        if (err < 0)
-            report_and_exit(err);
+        if (err < 0) {
+            av_log(NULL, AV_LOG_ERROR,
+                   "Error setting up avformat_find_stream_info() options\n");
+            ret = err;
+            goto fail;
+        }
 
         err = avformat_find_stream_info(ic, opts);