[FFmpeg-devel] [PATCH] C99ify array initialisation in mxfdec.c
Axel Holzinger
aholzinger
Fri Jul 16 15:22:08 CEST 2010
Axel Holzinger wrote:
> 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
Sorry, line endings were screwed up in original diff.
-------------- 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/6f16351e/attachment.obj>
More information about the ffmpeg-devel
mailing list