(SoftFilters) Fixes crashes with HQ2x - note - HQ2x is very slow due to YUV table

This commit is contained in:
twinaphex 2014-04-17 14:58:30 +02:00
parent aa3cdb4e05
commit 37c8ea816c

View File

@ -148,6 +148,8 @@ static inline uint8_t same(uint16_t x, uint16_t y)
static inline uint8_t diff(uint32_t x, uint16_t y)
{
if (y < 32768)
return 0;
return ((x - yuvTable[y]) & DIFF_MASK);
}