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:
9470205
)
sws: fix gray16_1
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 2 Jul 2011 22:33:23 +0000
(
00:33
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 11 Jul 2011 01:51:10 +0000
(
03:51
+0200)
libswscale/swscale.c
patch
|
blob
|
history
diff --git
a/libswscale/swscale.c
b/libswscale/swscale.c
index
471526f
..
d1cb371
100644
(file)
--- a/
libswscale/swscale.c
+++ b/
libswscale/swscale.c
@@
-578,8
+578,8
@@
yuv2gray16_1_c_template(SwsContext *c, const int32_t *buf0,
int i;
for (i = 0; i < (dstW >> 1); i++) {
- int Y1 =
buf0[i * 2 ] << 1
;
- int Y2 =
buf0[i * 2 + 1] << 1
;
+ int Y1 =
(buf0[i * 2 ]+4)>>3
;
+ int Y2 =
(buf0[i * 2 + 1]+4)>>3
;
output_pixel(&dest[i * 2 + 0], Y1);
output_pixel(&dest[i * 2 + 1], Y2);