diff mbox series

[FFmpeg-devel,15/47] fftools/ffmpeg_dec: drop redundant handling of AVERROR_EXPERIMENTAL

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

Commit Message

Anton Khirnov July 15, 2023, 10:45 a.m. UTC
Normal error handling does the job just as well.
---
 fftools/ffmpeg_dec.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c
index f5f764b6fa..62c1baf287 100644
--- a/fftools/ffmpeg_dec.c
+++ b/fftools/ffmpeg_dec.c
@@ -1115,9 +1115,6 @@  int dec_open(InputStream *ist)
     }
 
     if ((ret = avcodec_open2(ist->dec_ctx, codec, &ist->decoder_opts)) < 0) {
-        if (ret == AVERROR_EXPERIMENTAL)
-            exit_program(1);
-
         av_log(ist, AV_LOG_ERROR, "Error while opening decoder: %s\n",
                av_err2str(ret));
         return ret;