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
eaab103f
Commit
eaab103f
authored
Mar 15, 2012
by
Sébastien Escudier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for crazy values in rtsp npt range
parent
ae1d561e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/demux/live555.cpp
modules/demux/live555.cpp
+7
-1
No files found.
modules/demux/live555.cpp
View file @
eaab103f
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
* Note: config.h may include inttypes.h, so make sure we define this option
* Note: config.h may include inttypes.h, so make sure we define this option
* early enough. */
* early enough. */
#define __STDC_CONSTANT_MACROS 1
#define __STDC_CONSTANT_MACROS 1
#define __STDC_LIMIT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
...
@@ -1350,7 +1351,12 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -1350,7 +1351,12 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
if
(
p_sys
->
f_npt_length
>
0
)
if
(
p_sys
->
f_npt_length
>
0
)
{
{
*
pi64
=
(
int64_t
)(
p_sys
->
f_npt_length
*
1000000.0
);
double
d_length
=
p_sys
->
f_npt_length
*
1000000.0
;
/* Not sure if -0.5 is needed, but better be safe */
if
(
d_length
-
0.5
>
INT64_MAX
)
*
pi64
=
INT64_MAX
;
else
*
pi64
=
(
int64_t
)
d_length
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
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