From b35e9e19e93b0c69303444e9974ee640a924f798 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 15 Oct 2011 00:14:37 +0200 Subject: 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. --- libavfilter/af_aformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/af_aformat.c') 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); \ -- cgit v1.2.3