[FFmpeg-cvslog] lavc/libkvazaar: fix incompatible pointer type.
Jun Zhao
git at videolan.org
Wed Aug 22 14:07:45 EEST 2018
ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Mon Aug 20 14:39:32 2018 +0800| [e2921578c09ebbaa86b1659bc6076049f573e349] | committer: Jun Zhao
lavc/libkvazaar: fix incompatible pointer type.
fix the waring: libavcodec/libkvazaar.c:210:27: warning: passing argument 3 of ‘av_image_copy’ from incompatible pointer type [-Wincompatible-pointer-types]
frame->data, frame->linesize,
^~~~~
In file included from libavcodec/libkvazaar.c:31:0:
./libavutil/imgutils.h:119:6: note: expected ‘const uint8_t ** {aka const unsigned char **}’ but argument is of type ‘uint8_t * const* {aka unsigned char * const*}’
void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
Signed-off-by: Jun Zhao <mypopydev at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e2921578c09ebbaa86b1659bc6076049f573e349
---
libavcodec/libkvazaar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c
index 41a1bbb45e..5bc5b4ebf1 100644
--- a/libavcodec/libkvazaar.c
+++ b/libavcodec/libkvazaar.c
@@ -207,7 +207,7 @@ static int libkvazaar_encode(AVCodecContext *avctx,
0
};
av_image_copy(input_pic->data, dst_linesizes,
- frame->data, frame->linesize,
+ (const uint8_t **)frame->data, frame->linesize,
frame->format, frame->width, frame->height);
}
More information about the ffmpeg-cvslog
mailing list