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
9e8be462
Commit
9e8be462
authored
Sep 18, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postproc/postprocess: use av_strtok()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
921caf62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
postprocess.c
libpostproc/postprocess.c
+4
-3
No files found.
libpostproc/postprocess.c
View file @
9e8be462
...
...
@@ -708,11 +708,12 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
int
filterNameOk
=
0
;
int
numOfUnknownOptions
=
0
;
int
enable
=
1
;
//does the user want us to enabled or disabled the filter
char
*
tokstate
;
filterToken
=
strtok
(
p
,
filterDelimiters
);
filterToken
=
av_strtok
(
p
,
filterDelimiters
,
&
tokstate
);
if
(
!
filterToken
)
break
;
p
+=
strlen
(
filterToken
)
+
1
;
// p points to next filterToken
filterName
=
strtok
(
filterToken
,
optionDelimiters
);
filterName
=
av_strtok
(
filterToken
,
optionDelimiters
,
&
tokstate
);
if
(
!
filterName
)
{
ppMode
->
error
++
;
break
;
...
...
@@ -725,7 +726,7 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
}
for
(;;){
//for all options
option
=
strtok
(
NULL
,
optionDelimiters
);
option
=
av_strtok
(
NULL
,
optionDelimiters
,
&
tokstate
);
if
(
!
option
)
break
;
av_log
(
NULL
,
AV_LOG_DEBUG
,
"pp: option: %s
\n
"
,
option
);
...
...
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