diff mbox

[FFmpeg-devel,v2,10/11] avformat/dashenc: addition of muxer overhead for @bandwidth param in MPD

Message ID 1522831093-7589-1-git-send-email-vdixit@akamai.com
State Accepted
Commit 2c51e33bc1e26aa8071434dd619981e1c725263f
Headers show

Commit Message

Dixit, Vishwanath April 4, 2018, 8:38 a.m. UTC
From: Vishwanath Dixit <vdixit@akamai.com>

---
 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 31b0c92..ac05378 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -553,7 +553,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->bit_rate + os->muxer_overhead);
 
         if (as->media_type == AVMEDIA_TYPE_VIDEO) {
             AVStream *st = s->streams[i];