Commit 903f3382 authored by alex's avatar alex

use av_strdup

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8567 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2de6a0d8
...@@ -4320,11 +4320,7 @@ static int parse_ffconfig(const char *filename) ...@@ -4320,11 +4320,7 @@ static int parse_ffconfig(const char *filename)
get_arg(arg, sizeof(arg), &p); get_arg(arg, sizeof(arg), &p);
if (stream) { if (stream) {
av_freep(&stream->rtsp_option); av_freep(&stream->rtsp_option);
/* XXX: av_strdup ? */ stream->rtsp_option = av_strdup(arg);
stream->rtsp_option = av_malloc(strlen(arg) + 1);
if (stream->rtsp_option) {
strcpy(stream->rtsp_option, arg);
}
} }
} else if (!strcasecmp(cmd, "MulticastAddress")) { } else if (!strcasecmp(cmd, "MulticastAddress")) {
get_arg(arg, sizeof(arg), &p); get_arg(arg, sizeof(arg), &p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment