aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-03-31 14:36:24 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-03-31 14:36:24 +0000
commit65e7226147bb1e9df6de22f2b42005fe5778bcdb (patch)
tree35c6de16f0e18df6b0f6c509b77e014db6b32542
parent55d07ba68e39531b24bc3be27838c8b48b4f86f1 (diff)
downloadffmpeg-65e7226147bb1e9df6de22f2b42005fe5778bcdb.tar.gz
use av_strdup
Originally committed as revision 8567 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffserver.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ffserver.c b/ffserver.c
index 114aea4e60..fdb0f54de1 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -4320,11 +4320,7 @@ static int parse_ffconfig(const char *filename)
get_arg(arg, sizeof(arg), &p);
if (stream) {
av_freep(&stream->rtsp_option);
- /* XXX: av_strdup ? */
- stream->rtsp_option = av_malloc(strlen(arg) + 1);
- if (stream->rtsp_option) {
- strcpy(stream->rtsp_option, arg);
- }
+ stream->rtsp_option = av_strdup(arg);
}
} else if (!strcasecmp(cmd, "MulticastAddress")) {
get_arg(arg, sizeof(arg), &p);