aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_dec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-01-23 18:42:20 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-30 09:52:00 +0100
commitb3d1916ba03086d9d1e80a2ff5fdee2c915152ae (patch)
tree8b994c1577a587216acc125c774b690a7bda6d34 /fftools/ffmpeg_dec.c
parentd5f9ef766b4e7958f3cf75c6b838fbe0f22936c5 (diff)
downloadffmpeg-b3d1916ba03086d9d1e80a2ff5fdee2c915152ae.tar.gz
fftools/ffmpeg_dec: pass AVCodec through DecoderOpts
Do not retrieve it from InputStream directly. This is a step towards decoupling Decoder and InputStream.
Diffstat (limited to 'fftools/ffmpeg_dec.c')
-rw-r--r--fftools/ffmpeg_dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c
index 734549ed0b..e41440b21d 100644
--- a/fftools/ffmpeg_dec.c
+++ b/fftools/ffmpeg_dec.c
@@ -951,7 +951,7 @@ int dec_open(InputStream *ist, Scheduler *sch, unsigned sch_idx,
AVDictionary **dec_opts, const DecoderOpts *o)
{
DecoderPriv *dp;
- const AVCodec *codec = ist->dec;
+ const AVCodec *codec = o->codec;
int ret;
ret = dec_alloc(&ist->decoder);