fftools/ffmpeg_dec: pass AVCodecParameters through DecoderOpts

Do not retrieve it from InputStream directly.

This is a step towards decoupling Decoder and InputStream.
This commit is contained in:
Anton Khirnov
2024-01-23 18:42:20 +01:00
parent b3d1916ba0
commit 1b2c539a0f
3 changed files with 4 additions and 2 deletions

View File

@@ -931,6 +931,7 @@ static int ist_use(InputStream *ist, int decoding_needed)
ds->dec_opts.name = ds->dec_name;
ds->dec_opts.codec = ist->dec;
ds->dec_opts.par = ist->par;
ret = dec_open(ist, d->sch, ds->sch_idx_dec,
&ist->decoder_opts, &ds->dec_opts);