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/asrc_abuffer.c | |
parent | 88bdf7471f6b8df5106f84b4b4d4cffe4606bcb0 (diff) | |
download | ffmpeg-b35e9e19e93b0c69303444e9974ee640a924f798.tar.gz |
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/asrc_abuffer.c')
-rw-r--r-- | libavfilter/asrc_abuffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/asrc_abuffer.c b/libavfilter/asrc_abuffer.c index 4a0f08e538..bfa7e63f2a 100644 --- a/libavfilter/asrc_abuffer.c +++ b/libavfilter/asrc_abuffer.c @@ -25,6 +25,7 @@ */ #include "libavutil/audioconvert.h" +#include "libavutil/avstring.h" #include "libavutil/fifo.h" #include "asrc_abuffer.h" #include "internal.h" @@ -256,7 +257,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args0, void *opaque) char *args = av_strdup(args0); int ret; - arg = strtok_r(args, ":", &ptr); + arg = av_strtok(args, ":", &ptr); #define ADD_FORMAT(fmt_name) \ if (!arg) \ @@ -266,7 +267,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args0, void *opaque) return ret; \ } \ if (*args) \ - arg = strtok_r(NULL, ":", &ptr) + arg = av_strtok(NULL, ":", &ptr) ADD_FORMAT(sample_rate); ADD_FORMAT(sample_format); |