summaryrefslogtreecommitdiff
path: root/libavformat/dashenc.c
diff options
context:
space:
mode:
authorKarthick Jeyapal <kjeyapal@akamai.com>2018-09-04 13:45:48 +0530
committerKarthick Jeyapal <kjeyapal@akamai.com>2018-09-11 17:31:09 +0530
commit44ee858b6df0f3f350abd56bd18340c1d8d94ee8 (patch)
tree2a874c2519dce48c97e47541a9ff13cd700cfa9d /libavformat/dashenc.c
parent606879ec42980368b8bfe523c90ad859f448b18b (diff)
avformat/dashenc: Remove muxer overhead from Bandwidth field in DASH manifest
Fixes bug id #7386 Muxer overhead calculations was intented for HLS playlist as Apple's mediastreamvalidator tests were failing. But applying the same fix for DASH manifest proved counterproductive, as Bandwidth can be used for segment name templates.
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 d8b4230850..87e31e25fc 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -611,7 +611,7 @@ static int write_adaptation_set(AVFormatContext *s, AVIOContext *out, int as_ind
if (os->bit_rate > 0)
snprintf(bandwidth_str, sizeof(bandwidth_str), " bandwidth=\"%d\"",
- os->bit_rate + os->muxer_overhead);
+ os->bit_rate);
if (as->media_type == AVMEDIA_TYPE_VIDEO) {
AVStream *st = s->streams[i];