Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
7a14bb56
Commit
7a14bb56
authored
Jan 26, 2012
by
Hugo Beauzée-Luyssen
Browse files
dash: bandwidth is in bits per second
parent
6b984f72
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/stream_filter/dash/dash.cpp
View file @
7a14bb56
...
...
@@ -209,7 +209,7 @@ static int Control (stream_t *p_stream, int i_query, va_list args)
if
(
rep
==
NULL
)
*
res
=
0
;
else
*
res
=
p_sys
->
p_mpd
->
getDuration
()
*
rep
->
getBandwidth
();
*
res
=
p_sys
->
p_mpd
->
getDuration
()
*
rep
->
getBandwidth
()
/
8
;
}
break
;
}
...
...
modules/stream_filter/dash/mpd/Representation.h
View file @
7a14bb56
...
...
@@ -49,9 +49,9 @@ namespace dash
void
setId
(
const
std
::
string
&
id
);
/*
* @return The bitrate required for this representation
* in
Byte
s per seconds.
* in
bit
s per seconds.
* Will be a valid value, as the parser refuses Representation
* without bandwith.
* without bandwi
d
th.
*/
int
getBandwidth
()
const
;
void
setBandwidth
(
int
bandwidth
);
...
...
Write
Preview
Supports
Markdown
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