Hi! Attached patch fixes two warnings when compiling libswscale/slice.o.
Please comment, Carl Eugen
From d4d0a2c9c955d7dfd5bf9a91d31fcc3a1696e79d Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <ceho...@ag.or.at> Date: Sun, 26 Feb 2017 11:18:25 +0100 Subject: [PATCH] lsws/slice: Move a misplaced const. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a gcc warning: libswscale/slice.c:178:56: warning: assignment discards âconstâ qualifier from pointer target type [-Wdiscarded-qualifiers] --- libswscale/slice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/slice.c b/libswscale/slice.c index e14456f..db4fa87 100644 --- a/libswscale/slice.c +++ b/libswscale/slice.c @@ -158,7 +158,7 @@ int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int src chrY + chrH, lumY + lumH}; - const uint8_t *src_[4] = {src[0] + (relative ? 0 : start[0]) * stride[0], + uint8_t *const src_[4] = {src[0] + (relative ? 0 : start[0]) * stride[0], src[1] + (relative ? 0 : start[1]) * stride[1], src[2] + (relative ? 0 : start[2]) * stride[2], src[3] + (relative ? 0 : start[3]) * stride[3]}; -- 1.7.10.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel