diff mbox series

[FFmpeg-devel,13/25] fftools/ffmpeg_dec: drop useless abort_codec_experimental()

Message ID 20230413141223.17245-13-anton@khirnov.net
State Accepted
Commit c8fa58430edd6b2c3527d851baaa5a418e2ab9e2
Headers show
Series [FFmpeg-devel,01/25] fftools/ffmpeg_mux_init: move new_output_stream() lower in the file | 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 April 13, 2023, 2:12 p.m. UTC
It does nothing beyond exit_program().
---
 fftools/ffmpeg_dec.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c
index d6fd0de126..658e7418e9 100644
--- a/fftools/ffmpeg_dec.c
+++ b/fftools/ffmpeg_dec.c
@@ -27,11 +27,6 @@ 
 
 #include "ffmpeg.h"
 
-static void abort_codec_experimental(const AVCodec *c, int encoder)
-{
-    exit_program(1);
-}
-
 static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat *pix_fmts)
 {
     InputStream *ist = s->opaque;
@@ -123,7 +118,7 @@  int dec_open(InputStream *ist)
 
     if ((ret = avcodec_open2(ist->dec_ctx, codec, &ist->decoder_opts)) < 0) {
         if (ret == AVERROR_EXPERIMENTAL)
-            abort_codec_experimental(codec, 0);
+            exit_program(1);
 
         av_log(ist, AV_LOG_ERROR, "Error while opening decoder: %s\n",
                av_err2str(ret));