[FFmpeg-cvslog] sws cleanup yuv2planeX_10_c_template()

Michael Niedermayer git at videolan.org
Sun Oct 23 19:38:31 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 23 14:08:42 2011 +0200| [b6dcd6dfccdc3c689ec86a55595550a3662c37c9] | committer: Michael Niedermayer

sws cleanup yuv2planeX_10_c_template()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 96f2922..2694dbb 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -368,7 +368,7 @@ yuv2planeX_10_c_template(const int16_t *filter, int filterSize,
     int shift = 11 + 16 - output_bits;
 
     for (i = 0; i < dstW; i++) {
-        int val = 1 << (26-output_bits);
+        int val = 1 << (shift - 1);
         int j;
 
         for (j = 0; j < filterSize; j++)



More information about the ffmpeg-cvslog mailing list