[FFmpeg-cvslog] avformat/dashenc: addition of muxer overhead for @bandwidth param in MPD

Vishwanath Dixit git at videolan.org
Tue Apr 17 12:49:03 EEST 2018


ffmpeg | branch: master | Vishwanath Dixit <vdixit at akamai.com> | Wed Apr 11 12:50:19 2018 +0530| [2c51e33bc1e26aa8071434dd619981e1c725263f] | committer: Karthick Jeyapal

avformat/dashenc: addition of muxer overhead for @bandwidth param in MPD

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c51e33bc1e26aa8071434dd619981e1c725263f
---

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

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 6d06486de7..bf8698f292 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -555,7 +555,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];



More information about the ffmpeg-cvslog mailing list