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
e85242dd
Commit
e85242dd
authored
Mar 11, 2015
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Mar 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reimplement NumInRange without strtol
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a842eeec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/stream_out/duplicate.c
modules/stream_out/duplicate.c
+8
-1
No files found.
modules/stream_out/duplicate.c
View file @
e85242dd
...
@@ -307,7 +307,14 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
...
@@ -307,7 +307,14 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
*****************************************************************************/
*****************************************************************************/
static
bool
NumInRange
(
const
char
*
psz_range
,
int
i_num
)
static
bool
NumInRange
(
const
char
*
psz_range
,
int
i_num
)
{
{
return
true
;
int
beginRange
,
endRange
;
int
res
=
sscanf
(
psz_range
,
"%d-%d"
,
&
beginRange
,
&
endRange
);
if
(
res
==
0
)
return
false
;
else
if
(
res
==
1
)
return
beginRange
==
i_num
;
return
(
i_num
>=
beginRange
&&
i_num
<=
endRange
)
||
(
beginRange
>
endRange
&&
(
i_num
<=
beginRange
&&
i_num
>=
endRange
));
}
}
static
bool
ESSelected
(
const
es_format_t
*
fmt
,
char
*
psz_select
)
static
bool
ESSelected
(
const
es_format_t
*
fmt
,
char
*
psz_select
)
...
...
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