[Ffmpeg-cvslog] r8567 - trunk/ffserver.c

alex subversion
Sat Mar 31 16:36:24 CEST 2007


Author: alex
Date: Sat Mar 31 16:36:24 2007
New Revision: 8567

Modified:
   trunk/ffserver.c

Log:
use av_strdup

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sat Mar 31 16:36:24 2007
@@ -4320,11 +4320,7 @@ static int parse_ffconfig(const char *fi
             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);




More information about the ffmpeg-cvslog mailing list