mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 01:40:04 +01:00
avformat: Export ticks_per_frame in st->codec
Fixes regressions with stream copy and output timebase/fps being twice as fine as needed Makes the timebase and ticks per frame handled identical which should make the code easier to understand and work with. It does not solve the problem without st->codec access Suggested-by: Hendrik Leppkes Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -3825,8 +3825,10 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
||||
st->codec->height = st->internal->avctx->height;
|
||||
}
|
||||
|
||||
if (st->codec->codec_tag != MKTAG('t','m','c','d'))
|
||||
if (st->codec->codec_tag != MKTAG('t','m','c','d')) {
|
||||
st->codec->time_base = st->internal->avctx->time_base;
|
||||
st->codec->ticks_per_frame = st->internal->avctx->ticks_per_frame;
|
||||
}
|
||||
st->codec->framerate = st->avg_frame_rate;
|
||||
|
||||
if (st->internal->avctx->subtitle_header) {
|
||||
|
||||
Reference in New Issue
Block a user