mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
lavf: do not derive timebase from avg_frame_rate
avg_frame_rate is the _average_ framerate, its presence does not guarantee that the stream is CFR, so it should not be used for setting the timebase.
This commit is contained in:
parent
0214da22ca
commit
04feb1c038
@ -5892,9 +5892,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
enc_ctx->time_base = dec_ctx->time_base;
|
enc_ctx->time_base = dec_ctx->time_base;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ost->avg_frame_rate.num)
|
|
||||||
enc_ctx->time_base = av_inv_q(ost->avg_frame_rate);
|
|
||||||
|
|
||||||
av_reduce(&enc_ctx->time_base.num, &enc_ctx->time_base.den,
|
av_reduce(&enc_ctx->time_base.num, &enc_ctx->time_base.den,
|
||||||
enc_ctx->time_base.num, enc_ctx->time_base.den, INT_MAX);
|
enc_ctx->time_base.num, enc_ctx->time_base.den, INT_MAX);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user