Commit 7a14bb56 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

dash: bandwidth is in bits per second

parent 6b984f72
......@@ -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;
}
......
......@@ -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 );
......
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