Commit 44ee858b authored by Karthick Jeyapal's avatar Karthick Jeyapal

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.
parent 606879ec
...@@ -611,7 +611,7 @@ static int write_adaptation_set(AVFormatContext *s, AVIOContext *out, int as_ind ...@@ -611,7 +611,7 @@ static int write_adaptation_set(AVFormatContext *s, AVIOContext *out, int as_ind
if (os->bit_rate > 0) if (os->bit_rate > 0)
snprintf(bandwidth_str, sizeof(bandwidth_str), " bandwidth=\"%d\"", snprintf(bandwidth_str, sizeof(bandwidth_str), " bandwidth=\"%d\"",
os->bit_rate + os->muxer_overhead); os->bit_rate);
if (as->media_type == AVMEDIA_TYPE_VIDEO) { if (as->media_type == AVMEDIA_TYPE_VIDEO) {
AVStream *st = s->streams[i]; AVStream *st = s->streams[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment