From: Hugo Beauzée-Luyssen Date: Thu, 26 Jan 2012 16:09:30 +0000 (+0100) Subject: dash: bandwidth is in bits per second X-Git-Tag: 2.1.0-git~5904 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7a14bb56ac0d47de9a9fc0ac02cdec074461756e;p=vlc dash: bandwidth is in bits per second --- diff --git a/modules/stream_filter/dash/dash.cpp b/modules/stream_filter/dash/dash.cpp index d44661c045..fb2c052493 100644 --- a/modules/stream_filter/dash/dash.cpp +++ b/modules/stream_filter/dash/dash.cpp @@ -209,7 +209,7 @@ static int Control (stream_t *p_stream, int i_query, va_list args) if ( rep == NULL ) *res = 0; else - *res = p_sys->p_mpd->getDuration() * rep->getBandwidth(); + *res = p_sys->p_mpd->getDuration() * rep->getBandwidth() / 8; } break; } diff --git a/modules/stream_filter/dash/mpd/Representation.h b/modules/stream_filter/dash/mpd/Representation.h index 89845d20c1..15cd62d427 100644 --- a/modules/stream_filter/dash/mpd/Representation.h +++ b/modules/stream_filter/dash/mpd/Representation.h @@ -49,9 +49,9 @@ namespace dash void setId ( const std::string &id ); /* * @return The bitrate required for this representation - * in Bytes per seconds. + * in bits per seconds. * Will be a valid value, as the parser refuses Representation - * without bandwith. + * without bandwidth. */ int getBandwidth () const; void setBandwidth ( int bandwidth );