demux: avformat: use native rescaling
commita95d024bbb82df95263224e398dabed9a55fd2ca
authorFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 27 Nov 2020 16:39:05 +0000 (27 17:39 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 9 Dec 2020 12:04:12 +0000 (9 13:04 +0100)
tree493b372d8fa4db6e2071170ea3614b41e94f992c
parent5c7d8711fe22a09afbdcf7e573e735ad7a999fd4
demux: avformat: use native rescaling

Comparison & arithmetic through different time bases
are bogus (start_offset timebase vs streams pts timebase) when
rescaled using our own helpers.
We need to use the same rescaling functions to avoid different
roundings, then errors.
refs #25117
modules/codec/avcodec/avcommon.h
modules/demux/avformat/demux.c
modules/demux/avformat/mux.c