Commit 9d9a6f79 authored by diego's avatar diego

vYCoeffsBank and vCCoeffsBank are allocated and initialized using incorrect

sizes based on the image width instead of height.
patch by Alan Curry, pacman at world dot std dot com


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@17558 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 67c2406a
...@@ -788,17 +788,17 @@ altivec_yuv2packedX (SwsContext *c, ...@@ -788,17 +788,17 @@ altivec_yuv2packedX (SwsContext *c,
vector signed short *YCoeffs, *CCoeffs; vector signed short *YCoeffs, *CCoeffs;
vYCoeffsBank = malloc (sizeof (vector signed short)*lumFilterSize*dstW); vYCoeffsBank = malloc (sizeof (vector signed short)*lumFilterSize*c->dstH);
vCCoeffsBank = malloc (sizeof (vector signed short)*chrFilterSize*dstW); vCCoeffsBank = malloc (sizeof (vector signed short)*chrFilterSize*c->dstH);
for (i=0;i<lumFilterSize*dstW;i++) { for (i=0;i<lumFilterSize*c->dstH;i++) {
tmp = c->vLumFilter[i]; tmp = c->vLumFilter[i];
p = &vYCoeffsBank[i]; p = &vYCoeffsBank[i];
for (j=0;j<8;j++) for (j=0;j<8;j++)
p[j] = tmp; p[j] = tmp;
} }
for (i=0;i<chrFilterSize*dstW;i++) { for (i=0;i<chrFilterSize*c->dstH;i++) {
tmp = c->vChrFilter[i]; tmp = c->vChrFilter[i];
p = &vCCoeffsBank[i]; p = &vCCoeffsBank[i];
for (j=0;j<8;j++) for (j=0;j<8;j++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment