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
d0590ad1
Commit
d0590ad1
authored
Mar 04, 2012
by
Chris Smowton
Committed by
Hugo Beauzée-Luyssen
Mar 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hls: Fixing bad length computing.
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
0307c51e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+2
-2
No files found.
modules/stream_filter/httplive.c
View file @
d0590ad1
...
@@ -1458,10 +1458,10 @@ static int hls_DownloadSegmentData(stream_t *s, hls_stream_t *hls, segment_t *se
...
@@ -1458,10 +1458,10 @@ static int hls_DownloadSegmentData(stream_t *s, hls_stream_t *hls, segment_t *se
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
mtime_t
duration
=
mdate
()
-
start
;
mtime_t
duration
=
mdate
()
-
start
;
if
(
hls
->
bandwidth
==
0
)
if
(
hls
->
bandwidth
==
0
&&
segment
->
duration
>
0
)
{
{
/* Try to estimate the bandwidth for this stream */
/* Try to estimate the bandwidth for this stream */
hls
->
bandwidth
=
(
uint64_t
)((
double
)
segment
->
size
/
((
double
)
duration
/
1000000
.
0
));
hls
->
bandwidth
=
(
uint64_t
)((
(
double
)
segment
->
size
*
8
)
/
((
double
)
segment
->
duration
));
}
}
/* If the segment is encrypted, decode it */
/* If the segment is encrypted, decode it */
...
...
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