[FFmpeg-cvslog] r24391 - in trunk/libavformat: mxfdec.c rtsp.c

mstorsjo subversion
Wed Jul 21 19:27:29 CEST 2010


Author: mstorsjo
Date: Wed Jul 21 19:27:28 2010
New Revision: 24391

Log:
Zero-initialize structs/arrays with {0} instead of {}, which isn't proper C99

Patch by Axel Holzinger, aholzinger at gmx dot de

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

Modified: trunk/libavformat/mxfdec.c
==============================================================================
--- trunk/libavformat/mxfdec.c	Wed Jul 21 19:25:09 2010	(r24390)
+++ trunk/libavformat/mxfdec.c	Wed Jul 21 19:27:28 2010	(r24391)
@@ -531,7 +531,7 @@ static int mxf_read_index_table_segment(
 static void mxf_read_pixel_layout(ByteIOContext *pb, MXFDescriptor *descriptor)
 {
     int code, value, ofs = 0;
-    char layout[16] = {};
+    char layout[16] = {0};
 
     do {
         code = get_byte(pb);

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Wed Jul 21 19:25:09 2010	(r24390)
+++ trunk/libavformat/rtsp.c	Wed Jul 21 19:27:28 2010	(r24391)
@@ -1362,7 +1362,7 @@ int ff_rtsp_connect(AVFormatContext *s)
     char host[1024], path[1024], tcpname[1024], cmd[2048], auth[128];
     char *option_list, *option, *filename;
     int port, err, tcp_fd;
-    RTSPMessageHeader reply1 = {}, *reply = &reply1;
+    RTSPMessageHeader reply1 = {0}, *reply = &reply1;
     int lower_transport_mask = 0;
     char real_challenge[64];
     struct sockaddr_storage peer;



More information about the ffmpeg-cvslog mailing list