Commit 0fdc8382 authored by Christopher Mueller's avatar Christopher Mueller Committed by Hugo Beauzée-Luyssen

dash: dont use best rep without information

Signed-off-by: default avatarChristopher Mueller <christopher.mueller@itec.aau.at>
Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent da513a4e
...@@ -106,7 +106,7 @@ Representation* BasicCMManager::getRepresentation(Period *period, int bi ...@@ -106,7 +106,7 @@ Representation* BasicCMManager::getRepresentation(Period *period, int bi
int currentBitrate = reps.at(j)->getBandwidth(); int currentBitrate = reps.at(j)->getBandwidth();
assert( currentBitrate != -1 ); assert( currentBitrate != -1 );
if ( best == NULL || bitrate == -1 || if ( best == NULL ||
( currentBitrate > best->getBandwidth() && ( currentBitrate > best->getBandwidth() &&
currentBitrate < bitrate ) ) currentBitrate < bitrate ) )
{ {
......
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