mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 21:40:34 +00:00
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 Originally committed as revision 17558 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
parent
c0234aa44c
commit
be9d060d0c
@ -788,17 +788,17 @@ altivec_yuv2packedX (SwsContext *c,
|
||||
|
||||
vector signed short *YCoeffs, *CCoeffs;
|
||||
|
||||
vYCoeffsBank = malloc (sizeof (vector signed short)*lumFilterSize*dstW);
|
||||
vCCoeffsBank = malloc (sizeof (vector signed short)*chrFilterSize*dstW);
|
||||
vYCoeffsBank = malloc (sizeof (vector signed short)*lumFilterSize*c->dstH);
|
||||
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];
|
||||
p = &vYCoeffsBank[i];
|
||||
for (j=0;j<8;j++)
|
||||
p[j] = tmp;
|
||||
}
|
||||
|
||||
for (i=0;i<chrFilterSize*dstW;i++) {
|
||||
for (i=0;i<chrFilterSize*c->dstH;i++) {
|
||||
tmp = c->vChrFilter[i];
|
||||
p = &vCCoeffsBank[i];
|
||||
for (j=0;j<8;j++)
|
||||
|
Loading…
Reference in New Issue
Block a user