Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
0ef7876b
Commit
0ef7876b
authored
Apr 02, 2012
by
Frédéric Yhuel
Committed by
Jean-Baptiste Kempf
Apr 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HLS: don't use floats when not necessary
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
c2841b22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+1
-6
No files found.
modules/stream_filter/httplive.c
View file @
0ef7876b
...
@@ -1494,12 +1494,7 @@ static int hls_DownloadSegmentData(stream_t *s, hls_stream_t *hls, segment_t *se
...
@@ -1494,12 +1494,7 @@ static int hls_DownloadSegmentData(stream_t *s, hls_stream_t *hls, segment_t *se
msg_Info
(
s
,
"downloaded segment %d from stream %d"
,
msg_Info
(
s
,
"downloaded segment %d from stream %d"
,
segment
->
sequence
,
*
cur_stream
);
segment
->
sequence
,
*
cur_stream
);
/* check for division by zero */
uint64_t
bw
=
segment
->
size
*
8
*
1000000
/
__MAX
(
1
,
duration
);
/* bits / s */
double
ms
=
(
double
)
duration
/
1000
.
0
;
/* ms */
if
(
ms
<=
0
.
0
)
return
VLC_SUCCESS
;
uint64_t
bw
=
((
double
)(
segment
->
size
*
8
)
/
ms
)
*
1000
;
/* bits / s */
p_sys
->
bandwidth
=
bw
;
p_sys
->
bandwidth
=
bw
;
if
(
p_sys
->
b_meta
&&
(
hls
->
bandwidth
!=
bw
))
if
(
p_sys
->
b_meta
&&
(
hls
->
bandwidth
!=
bw
))
{
{
...
...
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