Revision be9d060d

View differences:

postproc/yuv2rgb_altivec.c
788 788

  
789 789
  vector signed short *YCoeffs, *CCoeffs;
790 790

  
791
  vYCoeffsBank = malloc (sizeof (vector signed short)*lumFilterSize*dstW);
792
  vCCoeffsBank = malloc (sizeof (vector signed short)*chrFilterSize*dstW);
791
  vYCoeffsBank = malloc (sizeof (vector signed short)*lumFilterSize*c->dstH);
792
  vCCoeffsBank = malloc (sizeof (vector signed short)*chrFilterSize*c->dstH);
793 793

  
794
  for (i=0;i<lumFilterSize*dstW;i++) {
794
  for (i=0;i<lumFilterSize*c->dstH;i++) {
795 795
    tmp = c->vLumFilter[i];
796 796
    p = &vYCoeffsBank[i];
797 797
    for (j=0;j<8;j++)
798 798
      p[j] = tmp;
799 799
  }
800 800

  
801
  for (i=0;i<chrFilterSize*dstW;i++) {
801
  for (i=0;i<chrFilterSize*c->dstH;i++) {
802 802
    tmp = c->vChrFilter[i];
803 803
    p = &vCCoeffsBank[i];
804 804
    for (j=0;j<8;j++)

Also available in: Unified diff