gst-ffmpeg arrays and DECLARE_ALIGNED

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gst-ffmpeg arrays and DECLARE_ALIGNED

Reimundo Heluani
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.



------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

swscale-array-inside-DECLARE_ALIGNED.patch (5K) Download Attachment