Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-05-30 22:07:39 +0400
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-05-30 22:07:39 +0400
commit3d0424f2ff3ae774d4237954186e4113976827e5 (patch)
tree40e412db0b55ccec57e78607174e193b2e4e2fba /libswscale
parent70564983c5e3a4e62426510aee8cd27bc636774e (diff)
Add "const" to avoid "initialization discards qualifiers" warning.
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 76096e7593..e7e81d35cb 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1665,7 +1665,7 @@ static int packedCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[
uint16_t scale= dither_scale[dst_depth-1][src_depth-1];\
int shift= src_depth-dst_depth + dither_scale[src_depth-2][dst_depth-1];\
for (i = 0; i < height; i++) {\
- uint8_t *dither= dithers[src_depth-9][i&7];\
+ const uint8_t *dither= dithers[src_depth-9][i&7];\
for (j = 0; j < length-7; j+=8){\
dst[j+0] = dbswap((bswap(src[j+0]) + dither[0])*scale>>shift);\
dst[j+1] = dbswap((bswap(src[j+1]) + dither[1])*scale>>shift);\