changeset 29643:c2b0efdf5358

Use correct buffers in vertical scaler in unscaled YV12 case.
author ramiro
date Wed, 16 Sep 2009 22:31:43 +0000
parents 0e6de6bc0eec
children 5eee87d44a4a
files libswscale/swscale_template.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale_template.c	Wed Sep 16 18:09:48 2009 +0000
+++ b/libswscale/swscale_template.c	Wed Sep 16 22:31:43 2009 +0000
@@ -2770,9 +2770,9 @@
                                   alpSrcPtr, (uint16_t *) dest, (uint16_t *) uDest, (uint16_t *) vDest, (uint16_t *) aDest, dstW, chrDstW,
                                   dstFormat);
                 } else if (vLumFilterSize == 1 && vChrFilterSize == 1) { // unscaled YV12
-                    int16_t *lumBuf = lumPixBuf[0];
-                    int16_t *chrBuf= chrPixBuf[0];
-                    int16_t *alpBuf= (CONFIG_SWSCALE_ALPHA && alpPixBuf) ? alpPixBuf[0] : NULL;
+                    int16_t *lumBuf = lumSrcPtr[0];
+                    int16_t *chrBuf= chrSrcPtr[0];
+                    int16_t *alpBuf= (CONFIG_SWSCALE_ALPHA && alpPixBuf) ? alpSrcPtr[0] : NULL;
                     c->yuv2yuv1(c, lumBuf, chrBuf, alpBuf, dest, uDest, vDest, aDest, dstW, chrDstW);
                 } else { //General YV12
                     c->yuv2yuvX(c,