ffmpeg | branch: master | Anton Khirnov <an...@khirnov.net> | Mon Apr  5 
10:47:10 2021 +0200| [0ac10d05f944c0fd8c6107e92d1f9ab790108f67] | committer: 
Anton Khirnov

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ac10d05f944c0fd8c6107e92d1f9ab790108f67
---

 libavformat/utils.c | 3 ---
 1 file changed, 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);
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to