Commit 02293a09 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

DASH: BasicCMManager: Bitrate is an unsigned value.

parent b94c3f32
...@@ -61,7 +61,7 @@ Representation* BasicCMManager::getBestRepresentation (Period *period) ...@@ -61,7 +61,7 @@ Representation* BasicCMManager::getBestRepresentation (Period *period)
{ {
std::vector<Group *> groups = period->getGroups(); std::vector<Group *> groups = period->getGroups();
int bitrate = 0; uint64_t bitrate = 0;
Representation *best = NULL; Representation *best = NULL;
for(size_t i = 0; i < groups.size(); i++) for(size_t i = 0; i < groups.size(); i++)
...@@ -69,8 +69,7 @@ Representation* BasicCMManager::getBestRepresentation (Period *period) ...@@ -69,8 +69,7 @@ Representation* BasicCMManager::getBestRepresentation (Period *period)
std::vector<Representation *> reps = groups.at(i)->getRepresentations(); std::vector<Representation *> reps = groups.at(i)->getRepresentations();
for(size_t j = 0; j < reps.size(); j++) for(size_t j = 0; j < reps.size(); j++)
{ {
int currentBitrate = reps.at(j)->getBandwidth(); uint64_t currentBitrate = reps.at(j)->getBandwidth();
assert( currentBitrate != -1 );
if( currentBitrate > bitrate) if( currentBitrate > bitrate)
{ {
...@@ -104,7 +103,6 @@ Representation* BasicCMManager::getRepresentation(Period *period, uint64 ...@@ -104,7 +103,6 @@ Representation* BasicCMManager::getRepresentation(Period *period, uint64
for( size_t j = 0; j < reps.size(); j++ ) for( size_t j = 0; j < reps.size(); j++ )
{ {
uint64_t currentBitrate = reps.at(j)->getBandwidth(); uint64_t currentBitrate = reps.at(j)->getBandwidth();
assert( currentBitrate != -1 );
if ( best == NULL || if ( best == NULL ||
( currentBitrate > best->getBandwidth() && ( currentBitrate > best->getBandwidth() &&
......
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