[FFmpeg-cvslog] r17474 - in trunk: ffserver.c libavformat/rtsp.c

rbultje subversion
Sat Feb 21 15:40:20 CET 2009


Author: rbultje
Date: Sat Feb 21 15:40:19 2009
New Revision: 17474

Log:
Change sizeof(struct_type) to sizeof(variable).

Modified:
   trunk/ffserver.c
   trunk/libavformat/rtsp.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	Sat Feb 21 11:34:29 2009	(r17473)
+++ trunk/ffserver.c	Sat Feb 21 15:40:19 2009	(r17474)
@@ -2654,7 +2654,7 @@ static int rtsp_parse_request(HTTPContex
     }
 
     /* parse each header line */
-    memset(header, 0, sizeof(RTSPHeader));
+    memset(header, 0, sizeof(*header));
     /* skip to next line */
     while (*p != '\n' && *p != '\0')
         p++;

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Sat Feb 21 11:34:29 2009	(r17473)
+++ trunk/libavformat/rtsp.c	Sat Feb 21 15:40:19 2009	(r17474)
@@ -748,7 +748,7 @@ static void rtsp_send_cmd(AVFormatContex
     int content_length, line_count;
     unsigned char *content = NULL;
 
-    memset(reply, 0, sizeof(RTSPHeader));
+    memset(reply, 0, sizeof(*reply));
 
     rt->seq++;
     av_strlcpy(buf, cmd, sizeof(buf));




More information about the ffmpeg-cvslog mailing list