diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-01-23 18:42:20 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-01-30 09:52:00 +0100 |
commit | 970281766200491c4e5bb2ea1480d8afc1548a3d (patch) | |
tree | f1f20a28e2e5c58ba4d395ca7b15be18745af5bc /fftools/ffmpeg_demux.c | |
parent | b27de18e4f66e8e775e173e4953f8fe4a7404a82 (diff) | |
download | ffmpeg-970281766200491c4e5bb2ea1480d8afc1548a3d.tar.gz |
fftools/ffmpeg_dec: pass input timebase through DecoderOpts
Do not read it from AVStream directly.
This is a step towards decoupling Decoder and InputStream.
Diffstat (limited to 'fftools/ffmpeg_demux.c')
-rw-r--r-- | fftools/ffmpeg_demux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 7cb85c127a..4cced4a7f8 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -1152,6 +1152,8 @@ static int ist_add(const OptionsContext *o, Demuxer *d, AVStream *st) ds->first_dts = AV_NOPTS_VALUE; ds->next_dts = AV_NOPTS_VALUE; + ds->dec_opts.time_base = st->time_base; + ds->ts_scale = 1.0; MATCH_PER_STREAM_OPT(ts_scale, dbl, ds->ts_scale, ic, st); |