Looks like you could just add a cast to expected type where this function is
called, or change the declaration of whatever is used as the parameter.

Basically, that function takes an array of pointers, and promises to not
change either the values of individual pointers or the values of whatever
they point to - and the caller doesn't care about such promises.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
09.02.2011 1:16 пользователь "cervello" <[email protected]> написал:
> ece@ubuntu:~/workspace/FFmpeg/jni$ /home/ece/ndk/ndk-build
> Install : libffmpeg.so => /home/ece/workspace/FFmpeg/libs/
> armeabi
> Compile thumb : takepics <= /home/ece/workspace/FFmpeg/jni/takepics.c
> /home/ece/workspace/FFmpeg/jni/takepics.c: In function 'fill_image':
> /home/ece/workspace/FFmpeg/jni/takepics.c:323: warning: passing
> argument 2 of 'sws_scale' from incompatible pointer type
> /home/ece/workspace/FFmpeg/jni/ffmpeg/libswscale/swscale.h:195: note:
> expected 'const uint8_t * const*' but argument is of type 'uint8_t **'
> /home/ece/workspace/FFmpeg/jni/takepics.c: In function
> 'Java_com_test_Test_takePics':
> /home/ece/workspace/FFmpeg/jni/takepics.c:634: warning: passing
> argument 2 of 'sws_scale' from incompatible pointer type
> /home/ece/workspace/FFmpeg/jni/ffmpeg/libswscale/swscale.h:195: note:
> expected 'const uint8_t * const*' but argument is of type 'uint8_t **'
> SharedLibrary : libtakepics.so
> Install : libtakepics.so => /home/ece/workspace/FFmpeg/libs/
> armeabi
>
>
> HOw can I fix that warnings? Does anyone know anything about it?
>
> Here is the types of sws_scale's parameters
> int sws_scale(SwsContext *c, const uint8_t* const src[], const int
> srcStride[], int srcSliceY,
> int srcSliceH, uint8_t* const dst[], const int
> dstStride[])
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to