[FFmpeg-cvslog] Fix 9/10 bit in swscale.

Kieran Kunhya git at videolan.org
Tue May 24 04:35:35 CEST 2011


ffmpeg | branch: master | Kieran Kunhya <kieran at kunhya.com> | Mon May 23 03:02:12 2011 +0100| [6465c820da7b104150366a8cdd837c00cf364235] | committer: Ronald S. Bultje

Fix 9/10 bit in swscale.

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6465c820da7b104150366a8cdd837c00cf364235
---

 libswscale/swscale.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index f5c4e88..3943aa0 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -233,7 +233,7 @@ static av_always_inline void yuv2yuvX16inC_template(const int16_t *lumFilter, co
         } \
     }
     for (i = 0; i < dstW; i++) {
-        int val = 1 << 10;
+        int val = 1 << (26-output_bits);
         int j;
 
         for (j = 0; j < lumFilterSize; j++)
@@ -244,8 +244,8 @@ static av_always_inline void yuv2yuvX16inC_template(const int16_t *lumFilter, co
 
     if (uDest) {
         for (i = 0; i < chrDstW; i++) {
-            int u = 1 << 10;
-            int v = 1 << 10;
+            int u = 1 << (26-output_bits);
+            int v = 1 << (26-output_bits);
             int j;
 
             for (j = 0; j < chrFilterSize; j++) {
@@ -260,7 +260,7 @@ static av_always_inline void yuv2yuvX16inC_template(const int16_t *lumFilter, co
 
     if (CONFIG_SWSCALE_ALPHA && aDest) {
         for (i = 0; i < dstW; i++) {
-            int val = 1 << 10;
+            int val = 1 << (26-output_bits);
             int j;
 
             for (j = 0; j < lumFilterSize; j++)



More information about the ffmpeg-cvslog mailing list