diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-09-16 22:31:43 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-09-16 22:31:43 +0000 |
commit | 953c821f9b8402cc8d4b4843612a2f594c97be75 (patch) | |
tree | f36929d81ab8c877bf968e82bc09cdc4593d4f43 | |
parent | 1bc8c36125dbd21b2cdf7c721f753df01b13eb3e (diff) | |
download | ffmpeg-953c821f9b8402cc8d4b4843612a2f594c97be75.tar.gz |
Use correct buffers in vertical scaler in unscaled YV12 case.
Originally committed as revision 29685 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r-- | libswscale/swscale_template.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index 48eda805cc..ad07bf7e5d 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -2770,9 +2770,9 @@ static int RENAME(swScale)(SwsContext *c, uint8_t* src[], int srcStride[], int s 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, |