summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-04-11 13:24:24 +0200
committerAnton Khirnov <anton@khirnov.net>2023-04-17 12:01:40 +0200
commitc8fa58430edd6b2c3527d851baaa5a418e2ab9e2 (patch)
tree2faec51f72bf0f1b4057ba6a87f19a059719671a
parent503c705634a0f92505e9f01080338590d1653ef0 (diff)
downloadffmpeg-c8fa58430edd6b2c3527d851baaa5a418e2ab9e2.tar.gz
fftools/ffmpeg_dec: drop useless abort_codec_experimental()
It does nothing beyond exit_program().
-rw-r--r--fftools/ffmpeg_dec.c7
1 files changed, 1 insertions, 6 deletions
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));