/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 swscale 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[])
Here is my sws_scale in my code:
static struct SwsContext *img_convert_ctx;
AVFrame *pFrame;
AVCodecContext *pCodecCtx;
AVFrame *pFrameRGB;
sws_scale(img_convert_ctx, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, pFrameRGB->data, pFrameRGB->linesize);