[gst-devel] gst-ffmpeg arrays and DECLARE_ALIGNED

Reimundo Heluani rheluani at gmail.com
Sat Jan 23 19:45:42 CET 2010


Hi there, I'm trying to build git master of gst-ffmpeg and found
problems in libswscale:

swscale.c:254: error: conflicting type qualifiers for 'ff_dither4'
swscale_internal.h:458: note: previous declaration of 'ff_dither4' was
here
swscale.c:254: error: expected ',' or ';' before '[' token
swscale.c:258: error: conflicting type qualifiers for 'ff_dither8'
swscale_internal.h:459: note: previous declaration of 'ff_dither8' was
here
swscale.c:258: error: expected ',' or ';' before '[' token
....
...

Then later on:
swscale.c:994: error: subscripted value is neither array nor pointer
swscale.c:994: error: subscripted value is neither array nor pointer
swscale.c:994: error: subscripted value is neither array nor pointer
swscale.c:994: error: subscripted value is neither array nor pointer
...

And lots like these. I could solve these issues with the attached patch
that simply changes statements like

DECLARE_ALIGNED(8, const uint8_t, dither_8x8_220)[8][8]

by 
DECLARE_ALIGNED(8, const uint8_t, dither_8x8_220[8][8])

But I'm no coder so I'm not sure if this is the right thing to do.

Cheers,

R.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: swscale-array-inside-DECLARE_ALIGNED.patch
Type: text/x-patch
Size: 5685 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100123/5658231e/attachment.bin>


More information about the gstreamer-devel mailing list