[FFmpeg-devel] [PATCH v3 3/5] avcodec/mmaldec: fix pointer type warning

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Thu Dec 9 15:08:03 EET 2021


From: Ho Ming Shun <cyph1984 at gmail.com>

Signed-off-by: Ho Ming Shun <cyph1984 at gmail.com>
---
 libavcodec/mmaldec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 68ecc68f17..3e11d487ab 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);
     }
 
-- 
2.32.0



More information about the ffmpeg-devel mailing list