From 48f1c6c2d69a9c2db9f7fa01890d3642da2bf38f Mon Sep 17 00:00:00 2001 From: Frank Leon Rose Date: Mon, 5 Apr 2021 15:55:14 +0100 Subject: [PATCH] Fix compiler warning --- app/src/capture.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/capture.c b/app/src/capture.c index 4d02bc6b..960cdc3e 100644 --- a/app/src/capture.c +++ b/app/src/capture.c @@ -100,7 +100,10 @@ static bool in_frame_to_png( av_image_alloc( rgbFrame->data, rgbFrame->linesize, targetWidth, targetHeight, AV_PIX_FMT_RGB24, 1); sws_scale( - swCtx, inframe->data, inframe->linesize, 0, + swCtx, + // const_cast(inframe->data) + (const uint8_t * const*)(inframe->data), + inframe->linesize, 0, inframe->height, rgbFrame->data, rgbFrame->linesize); LOGV("Scaling image: %llu", get_timestamp() - start);