Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
02293a09
Commit
02293a09
authored
Mar 29, 2012
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DASH: BasicCMManager: Bitrate is an unsigned value.
parent
b94c3f32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/stream_filter/dash/mpd/BasicCMManager.cpp
modules/stream_filter/dash/mpd/BasicCMManager.cpp
+2
-4
No files found.
modules/stream_filter/dash/mpd/BasicCMManager.cpp
View file @
02293a09
...
@@ -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
()
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment