Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ac896f0c
Commit
ac896f0c
authored
Dec 06, 2014
by
Reynaldo H. Verdejo Pinochet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffserver_config: reflow _get_arg()
Signed-off-by:
Reynaldo H. Verdejo Pinochet
<
reynaldo@osg.samsung.com
>
parent
da95fe4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
ffserver_config.c
ffserver_config.c
+8
-12
No files found.
ffserver_config.c
View file @
ac896f0c
...
@@ -84,28 +84,24 @@ void ffserver_get_arg(char *buf, int buf_size, const char **pp)
...
@@ -84,28 +84,24 @@ void ffserver_get_arg(char *buf, int buf_size, const char **pp)
{
{
const
char
*
p
;
const
char
*
p
;
char
*
q
;
char
*
q
;
int
quote
;
int
quote
=
0
;
p
=
*
pp
;
p
=
*
pp
;
while
(
av_isspace
(
*
p
))
p
++
;
q
=
buf
;
q
=
buf
;
quote
=
0
;
while
(
av_isspace
(
*
p
))
p
++
;
if
(
*
p
==
'\"'
||
*
p
==
'\''
)
if
(
*
p
==
'\"'
||
*
p
==
'\''
)
quote
=
*
p
++
;
quote
=
*
p
++
;
for
(;;)
{
if
(
quote
)
{
while
(
*
p
!=
'\0'
)
{
if
(
*
p
==
quote
)
if
(
quote
&&
*
p
==
quote
||
!
quote
&&
av_isspace
(
*
p
))
break
;
}
else
{
if
(
av_isspace
(
*
p
))
break
;
}
if
(
*
p
==
'\0'
)
break
;
break
;
if
((
q
-
buf
)
<
buf_size
-
1
)
if
((
q
-
buf
)
<
buf_size
-
1
)
*
q
++
=
*
p
;
*
q
++
=
*
p
;
p
++
;
p
++
;
}
}
*
q
=
'\0'
;
*
q
=
'\0'
;
if
(
quote
&&
*
p
==
quote
)
if
(
quote
&&
*
p
==
quote
)
p
++
;
p
++
;
...
...
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