[vlc-commits] DASH: BasicCMManager: Bitrate is an unsigned value.
Hugo Beauzée-Luyssen
git at videolan.org
Thu Mar 29 14:59:35 CEST 2012
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Mar 29 14:57:34 2012 +0200| [02293a0966cf8e854a38e84047b58043d2685c04] | committer: Hugo Beauzée-Luyssen
DASH: BasicCMManager: Bitrate is an unsigned value.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=02293a0966cf8e854a38e84047b58043d2685c04
---
modules/stream_filter/dash/mpd/BasicCMManager.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/stream_filter/dash/mpd/BasicCMManager.cpp b/modules/stream_filter/dash/mpd/BasicCMManager.cpp
index a42da61..14c6644 100644
--- a/modules/stream_filter/dash/mpd/BasicCMManager.cpp
+++ b/modules/stream_filter/dash/mpd/BasicCMManager.cpp
@@ -61,7 +61,7 @@ Representation* BasicCMManager::getBestRepresentation (Period *period)
{
std::vector<Group *> groups = period->getGroups();
- int bitrate = 0;
+ uint64_t bitrate = 0;
Representation *best = NULL;
for(size_t i = 0; i < groups.size(); i++)
@@ -69,8 +69,7 @@ Representation* BasicCMManager::getBestRepresentation (Period *period)
std::vector<Representation *> reps = groups.at(i)->getRepresentations();
for(size_t j = 0; j < reps.size(); j++)
{
- int currentBitrate = reps.at(j)->getBandwidth();
- assert( currentBitrate != -1 );
+ uint64_t currentBitrate = reps.at(j)->getBandwidth();
if( currentBitrate > bitrate)
{
@@ -104,7 +103,6 @@ Representation* BasicCMManager::getRepresentation(Period *period, uint64
for( size_t j = 0; j < reps.size(); j++ )
{
uint64_t currentBitrate = reps.at(j)->getBandwidth();
- assert( currentBitrate != -1 );
if ( best == NULL ||
( currentBitrate > best->getBandwidth() &&
More information about the vlc-commits
mailing list