[FFmpeg-devel] C99ify array initialisation in mxfdec.c

Axel Holzinger aholzinger
Fri Jul 16 14:52:51 CEST 2010


Hi,

initialising to zero with {} is not official C99 standard C.

{0} is the way to go.

Index: mxfdec.c
===================================================================
--- mxfdec.c	(revision 24263)
+++ mxfdec.c	(working copy)
@@ -531,7 +531,7 @@
 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);

Cheers
Axel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mxfdec.diff
Type: application/octet-stream
Size: 374 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100716/ed9bab9f/attachment.obj>



More information about the ffmpeg-devel mailing list