[FFmpeg-cvslog] sws:ix yuv2rgb48_1_c_template()
Michael Niedermayer
git at videolan.org
Mon Jul 11 04:12:59 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jul 2 23:30:14 2011 +0200| [947020541400bbef27a6a2858e725d234758c384] | committer: Michael Niedermayer
sws:ix yuv2rgb48_1_c_template()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=947020541400bbef27a6a2858e725d234758c384
---
libswscale/swscale.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 17a4650..471526f 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1027,8 +1027,8 @@ yuv2rgb48_1_c_template(SwsContext *c, const int32_t *buf0,
for (i = 0; i < (dstW >> 1); i++) {
int Y1 = (buf0[i * 2] ) >> 2;
int Y2 = (buf0[i * 2 + 1]) >> 2;
- int U = (ubuf0[i] + ubuf1[i] + (-128 << 11)) >> 3;
- int V = (vbuf0[i] + vbuf1[i] + (-128 << 11)) >> 3;
+ int U = (ubuf0[i] + ubuf1[i] + (-128 << 12)) >> 3;
+ int V = (vbuf0[i] + vbuf1[i] + (-128 << 12)) >> 3;
int R, G, B;
Y1 -= c->yuv2rgb_y_offset;
More information about the ffmpeg-cvslog
mailing list