diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-12-19 12:02:25 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-01-19 17:54:10 +0100 |
commit | 7e33534506086ccd0d0ccd67ebe87cb02384e7c9 (patch) | |
tree | dce4ea5d06dd9853b26542b54c2e3fe31899456d /fftools/ffmpeg_demux.c | |
parent | cdb65857c3d3e8e49bdef432310545f3863b0186 (diff) | |
download | ffmpeg-7e33534506086ccd0d0ccd67ebe87cb02384e7c9.tar.gz |
fftools/ffmpeg_demux: do not set bitexact directly on the decoder
Add it to decoder options instead, to be processed when opening the
decoder. This way it won't be overridden by flags the user might be
setting otherwise.
Diffstat (limited to 'fftools/ffmpeg_demux.c')
-rw-r--r-- | fftools/ffmpeg_demux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 5d07b7153d..cacdc76a71 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -1156,7 +1156,7 @@ static int ist_add(const OptionsContext *o, Demuxer *d, AVStream *st) } if (o->bitexact) - ist->dec_ctx->flags |= AV_CODEC_FLAG_BITEXACT; + av_dict_set(&ist->decoder_opts, "flags", "+bitexact", AV_DICT_MULTIKEY); switch (par->codec_type) { case AVMEDIA_TYPE_VIDEO: |