[FFmpeg-cvslog] fftools/ffmpeg_dec: drop redundant handling of AVERROR_EXPERIMENTAL

Anton Khirnov git at videolan.org
Thu Jul 20 21:56:48 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Jul 13 15:14:42 2023 +0200| [6298dd683b8542dd0c6b5eefabdcd8a7c7c54399] | committer: Anton Khirnov

fftools/ffmpeg_dec: drop redundant handling of AVERROR_EXPERIMENTAL

Normal error handling does the job just as well.

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

 fftools/ffmpeg_dec.c | 3 ---
 1 file changed, 3 deletions(-)

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;



More information about the ffmpeg-cvslog mailing list