Commit e2921578 authored by Jun Zhao's avatar Jun Zhao Committed by 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: 's avatarJun Zhao <mypopydev@gmail.com>
parent c4608d22
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment