aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_dec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-01-11 12:19:37 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-30 09:52:00 +0100
commitb2a0a2e6f531afa75c59c917c53b8ccee07d3655 (patch)
treef6f60c60c3aa98f08774b800706662429413ebcd /fftools/ffmpeg_dec.c
parent217b8757db6280fae49e8c3cbbf3cdb7fcb02607 (diff)
downloadffmpeg-b2a0a2e6f531afa75c59c917c53b8ccee07d3655.tar.gz
fftools/ffmpeg: move decoder existence check to a more appropriate place
Diffstat (limited to 'fftools/ffmpeg_dec.c')
-rw-r--r--fftools/ffmpeg_dec.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c
index 1c5030d933..c80b6eddea 100644
--- a/fftools/ffmpeg_dec.c
+++ b/fftools/ffmpeg_dec.c
@@ -898,13 +898,6 @@ int dec_open(InputStream *ist, Scheduler *sch, unsigned sch_idx,
const AVCodec *codec = ist->dec;
int ret;
- if (!codec) {
- av_log(ist, AV_LOG_ERROR,
- "Decoding requested, but no decoder found for: %s\n",
- avcodec_get_name(ist->par->codec_id));
- return AVERROR(EINVAL);
- }
-
ret = dec_alloc(&ist->decoder);
if (ret < 0)
return ret;