Commit 65e72261 authored by Alex Beregszaszi's avatar Alex Beregszaszi

use av_strdup

Originally committed as revision 8567 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 55d07ba6
...@@ -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