fftools/ffmpeg_dec: pass decoder options as an argument to dec_open()

Rather than access the dictionary in InputStream.

This is a step towards decoupling Decoder and InputStream.
This commit is contained in:
Anton Khirnov
2024-01-11 10:45:18 +01:00
parent 7ecd45587f
commit 5b0e4f945e
3 changed files with 17 additions and 10 deletions

View File

@@ -895,7 +895,8 @@ static int ist_use(InputStream *ist, int decoding_needed)
if (ret < 0)
return ret;
ret = dec_open(ist, d->sch, ds->sch_idx_dec);
ret = dec_open(ist, d->sch, ds->sch_idx_dec,
&ist->decoder_opts);
if (ret < 0)
return ret;