OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7056498
)
Add "const" to avoid "initialization discards qualifiers" warning.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 30 May 2011 18:07:39 +0000
(20:07 +0200)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 30 May 2011 18:07:39 +0000
(20:07 +0200)
libswscale/swscale.c
patch
|
blob
|
history
diff --git
a/libswscale/swscale.c
b/libswscale/swscale.c
index
76096e7
..
e7e81d3
100644
(file)
--- 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);\