diff mbox series

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

Message ID AM7PR03MB6660A59BD184FA30CED24C068F709@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Headers show
Series Switch mmaldec to receive_frame API | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Dec. 9, 2021, 1:08 p.m. UTC
From: Ho Ming Shun <cyph1984@gmail.com>

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

Patch

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);
     }