summaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorThilo Borgmann <thilo.borgmann@mail.de>2014-11-10 20:31:14 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-10 21:02:53 +0100
commit48c29883fcb27406123713153422d89e82de5cfc (patch)
tree8126f98feea94a71e0381f0f63e1ca4d4e39eac8 /libavdevice
parent7656c4c6e66f8a787d384f027ad824cc1677fda1 (diff)
downloadffmpeg-streaming-48c29883fcb27406123713153422d89e82de5cfc.zip
ffmpeg-streaming-48c29883fcb27406123713153422d89e82de5cfc.tar.gz
lavd/avfoundation: Use internal av_strtok instead of std lib strtok
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/avfoundation.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index 5e5f70b..e756225 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -30,6 +30,7 @@
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
+#include "libavutil/avstring.h"
#include "libavformat/internal.h"
#include "libavutil/internal.h"
#include "libavutil/time.h"
@@ -253,12 +254,13 @@ static void parse_device_name(AVFormatContext *s)
{
AVFContext *ctx = (AVFContext*)s->priv_data;
char *tmp = av_strdup(s->filename);
+ char *save;
if (tmp[0] != ':') {
- ctx->video_filename = strtok(tmp, ":");
- ctx->audio_filename = strtok(NULL, ":");
+ ctx->video_filename = av_strtok(tmp, ":", &save);
+ ctx->audio_filename = av_strtok(NULL, ":", &save);
} else {
- ctx->audio_filename = strtok(tmp, ":");
+ ctx->audio_filename = av_strtok(tmp, ":", &save);
}
}
OpenPOWER on IntegriCloud