aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-02-21 14:40:19 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2009-02-21 14:40:19 +0000
commitd541a7d2d1d42f669de1716d6bbbc2e57335e837 (patch)
tree4f77bbb576ae6d446a61966babc18af01999cf7e
parent404944183d61ea8d2e9c02770651ea6d8306259f (diff)
downloadffmpeg-d541a7d2d1d42f669de1716d6bbbc2e57335e837.tar.gz
Change sizeof(struct_type) to sizeof(variable).
Originally committed as revision 17474 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffserver.c2
-rw-r--r--libavformat/rtsp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ffserver.c b/ffserver.c
index 9236050e12..927a888980 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 ac8a9e18b9..d991a9de72 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));