Revision adeaecb9 postproc/swscale.c

View differences:

postproc/swscale.c
671 671
		asm volatile("emms\n\t"::: "memory"); //FIXME this shouldnt be required but it IS (even for non mmx versions)
672 672
#endif
673 673

  
674
	// Note the +1 is for the MMXscaler which reads over the end
674 675
	*filterPos = (int16_t*)memalign(8, (dstW+1)*sizeof(int16_t));
675
	(*filterPos)[dstW]=0; // the MMX scaler will read over the end 
676 676

  
677 677
	if(ABS(xInc - 0x10000) <10) // unscaled
678 678
	{
......
963 963
			(*outFilter)[i*(*outFilterSize) + j]= (int)(filter[i*filterSize + j]*scale);
964 964
		}
965 965
	}
966
	
967
	(*filterPos)[dstW]= (*filterPos)[dstW-1]; // the MMX scaler will read over the end
968
	for(i=0; i<*outFilterSize; i++)
969
	{
970
		int j= dstW*(*outFilterSize);
971
		(*outFilter)[j + i]= (*outFilter)[j + i - (*outFilterSize)];
972
	}
966 973

  
967 974
	free(filter);
968 975
}

Also available in: Unified diff