This reverts commit 2a9ffd89fcb09bd69b2130da039ad2caba79cf33 as duration is 
always in AV_TIME_BASE units
---
 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 3e587acdff..05deb5c1b5 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1960,7 +1960,7 @@ static int dash_flush(AVFormatContext *s, int final, int 
stream)
 
         if (!os->bit_rate) {
             // calculate average bitrate of first segment
-            int64_t bitrate = (int64_t) range_length * 8 * (c->use_timeline ? 
os->ctx->streams[0]->time_base.den : AV_TIME_BASE) / duration;
+            int64_t bitrate = (int64_t) range_length * 8 * AV_TIME_BASE / 
duration;
             if (bitrate >= 0)
                 os->bit_rate = bitrate;
         }
-- 
2.25.4

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

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

Reply via email to