summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-04-05 10:47:10 +0200
committerAnton Khirnov <anton@khirnov.net>2021-04-08 11:03:15 +0200
commit04feb1c0382104c36d2297a277ffd1450d016d35 (patch)
tree684c29707eb02d617d6b63cb3751b4bf130197de /libavformat/utils.c
parent0214da22cae08615f58f9769a4e8fb47d21aa687 (diff)
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.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index b671fa75b3..d9971d7fd3 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -5892,9 +5892,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
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,
enc_ctx->time_base.num, enc_ctx->time_base.den, INT_MAX);