Change sizeof(struct_type) to sizeof(variable).
Originally committed as revision 17474 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -2654,7 +2654,7 @@ static int rtsp_parse_request(HTTPContext *c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* parse each header line */
|
/* parse each header line */
|
||||||
memset(header, 0, sizeof(RTSPHeader));
|
memset(header, 0, sizeof(*header));
|
||||||
/* skip to next line */
|
/* skip to next line */
|
||||||
while (*p != '\n' && *p != '\0')
|
while (*p != '\n' && *p != '\0')
|
||||||
p++;
|
p++;
|
||||||
|
@ -748,7 +748,7 @@ static void rtsp_send_cmd(AVFormatContext *s,
|
|||||||
int content_length, line_count;
|
int content_length, line_count;
|
||||||
unsigned char *content = NULL;
|
unsigned char *content = NULL;
|
||||||
|
|
||||||
memset(reply, 0, sizeof(RTSPHeader));
|
memset(reply, 0, sizeof(*reply));
|
||||||
|
|
||||||
rt->seq++;
|
rt->seq++;
|
||||||
av_strlcpy(buf, cmd, sizeof(buf));
|
av_strlcpy(buf, cmd, sizeof(buf));
|
||||||
|
Reference in New Issue
Block a user