Fixed HDS bit rate

This commit is contained in:
Thulinma 2016-10-11 11:15:35 +02:00
parent 1d2dbd1be0
commit 25a60e4ca3

View file

@ -117,7 +117,8 @@ namespace Mist {
"</bootstrapInfo>" << std::endl; "</bootstrapInfo>" << std::endl;
Result << " <media " Result << " <media "
"url=\"" << (*it) << "-\" " "url=\"" << (*it) << "-\" "
"bitrate=\"" << myMeta.tracks[(*it)].bps * 8 << "\" " //bitrate in kbit/s, we have bps so divide by 128
"bitrate=\"" << (myMeta.tracks[(*it)].bps / 128) << "\" "
"bootstrapInfoId=\"boot" << (*it) << "\" " "bootstrapInfoId=\"boot" << (*it) << "\" "
"width=\"" << myMeta.tracks[(*it)].width << "\" " "width=\"" << myMeta.tracks[(*it)].width << "\" "
"height=\"" << myMeta.tracks[(*it)].height << "\">" << std::endl; "height=\"" << myMeta.tracks[(*it)].height << "\">" << std::endl;