summaryrefslogtreecommitdiff
path: root/libpostproc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-18 14:21:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-18 14:43:43 +0200
commit9e8be462521e1c66c5ae0f3e3fe8ece18a0fb931 (patch)
tree89c9835cecd643ff1efc86682ea3cf55d059090d /libpostproc
parent921caf620386cc480da5166dd38dc136bfcd754e (diff)
downloadffmpeg-9e8be462521e1c66c5ae0f3e3fe8ece18a0fb931.tar.gz
postproc/postprocess: use av_strtok()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc')
-rw-r--r--libpostproc/postprocess.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index af3219481f..6dee0417e5 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -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);