Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemysław Sobala <przemyslaw.sobala@gmail.com>2020-06-16 15:32:03 +0300
committerKarthick J <kjeyapal@akamai.com>2020-06-22 08:02:10 +0300
commit19726288d8b50290f0bda8b94f37cb7d9338320a (patch)
tree20d4e61c18caa9ac3ec43ae9c8061bdb45c25ee2 /libavformat/dashenc.c
parentfdac3c80ac65f6c6fb2fedae7d6236044ba531c5 (diff)
Revert "avformat/dashenc: use AVStream timebase when computing missing bitrate"
This reverts commit 2a9ffd89fcb09bd69b2130da039ad2caba79cf33 as duration is always in AV_TIME_BASE units
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r--libavformat/dashenc.c2
1 files changed, 1 insertions, 1 deletions
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;
}