lsws/slice: Move a misplaced const.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 26 Feb 2017 10:18:25 +0000 (11:18 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 7 Mar 2017 23:33:21 +0000 (00:33 +0100)
Fixes a gcc warning:
libswscale/slice.c:178:56: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

libswscale/slice.c

index e14456f..db4fa87 100644 (file)
@@ -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]};