diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2011-10-15 00:14:37 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-10-18 18:21:03 +0200 |
commit | b35e9e19e93b0c69303444e9974ee640a924f798 (patch) | |
tree | 09c93cf03ae3e1902b312eef74aab72f75180da9 /libavfilter/af_aformat.c | |
parent | 88bdf7471f6b8df5106f84b4b4d4cffe4606bcb0 (diff) |
lavu: add av_strtok()
The function strtok_r() is part of the POSIX.1 specification, but is not
available on some platforms. We provide an internal implementation, so we
do not need to rely on a platform implementation.
Diffstat (limited to 'libavfilter/af_aformat.c')
-rw-r--r-- | libavfilter/af_aformat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c index a7aa45f0b1..20ab940cc8 100644 --- a/libavfilter/af_aformat.c +++ b/libavfilter/af_aformat.c @@ -50,7 +50,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) aformat->fmts_list = all_formats; \ } else { \ for (fmt_str = fmts_str; \ - fmt_str = strtok_r(fmt_str, ",", &ptr); fmt_str = NULL) { \ + fmt_str = av_strtok(fmt_str, ",", &ptr); fmt_str = NULL) { \ if ((ret = ff_parse_##fmt_name((fmt_type *)&fmt, \ fmt_str, ctx)) < 0) { \ av_freep(&fmts_str); \ |