[SCM] libav/experimental: Change sizeof(struct_type) to sizeof(variable).

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:39:00 UTC 2013


The following commit has been merged in the experimental branch:
commit d541a7d2d1d42f669de1716d6bbbc2e57335e837
Author: Ronald S. Bultje <rsbultje at gmail.com>
Date:   Sat Feb 21 14:40:19 2009 +0000

    Change sizeof(struct_type) to sizeof(variable).
    
    Originally committed as revision 17474 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffserver.c b/ffserver.c
index 9236050..927a888 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2654,7 +2654,7 @@ static int rtsp_parse_request(HTTPContext *c)
     }
 
     /* parse each header line */
-    memset(header, 0, sizeof(RTSPHeader));
+    memset(header, 0, sizeof(*header));
     /* skip to next line */
     while (*p != '\n' && *p != '\0')
         p++;
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ac8a9e1..d991a9d 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -748,7 +748,7 @@ static void rtsp_send_cmd(AVFormatContext *s,
     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));

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list