[FFmpeg-cvslog] avcodec/mmaldec: fix pointer type warning
Ho Ming Shun
git at videolan.org
Sun Dec 12 18:02:57 EET 2021
ffmpeg | branch: master | Ho Ming Shun <cyph1984 at gmail.com> | Fri Sep 24 17:04:38 2021 +0800| [dd779749f05fd3a786857b06ee4efc5e193bf90e] | committer: Andreas Rheinhardt
avcodec/mmaldec: fix pointer type warning
Tested-by: Cameron Gutman <aicommander at gmail.com>
Signed-off-by: Ho Ming Shun <cyph1984 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd779749f05fd3a786857b06ee4efc5e193bf90e
---
libavcodec/mmaldec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index f1bcaed0ff..b0140170f2 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -656,7 +656,7 @@ static int ffmal_copy_frame(AVCodecContext *avctx, AVFrame *frame,
av_image_fill_arrays(src, linesize,
buffer->data + buffer->type->video.offset[0],
avctx->pix_fmt, w, h, 1);
- av_image_copy(frame->data, frame->linesize, src, linesize,
+ av_image_copy(frame->data, frame->linesize, (const uint8_t **)src, linesize,
avctx->pix_fmt, avctx->width, avctx->height);
}
More information about the ffmpeg-cvslog
mailing list