Unified · Split
| @@ -661,7 +661,9 @@ static int swScale_c(SwsContext *c, const uint8_t* src[], int srcStride[], · 660 unmodified lines | ||
| 661 | 661 | if (!enough_lines) |
| 662 | 662 | break; //we can't output a dstY line so let's try with the next slice |
| 663 | 663 | |
| 664 | − if (HAVE_MMX) updateMMXDitherTables(c, dstY, lumBufIndex, chrBufIndex, lastInLumBuf, lastInChrBuf); | |
| 664 | +#if HAVE_MMX | |
| 665 | + updateMMXDitherTables(c, dstY, lumBufIndex, chrBufIndex, lastInLumBuf, lastInChrBuf); | |
| 666 | +#endif | |
| 665 | 667 | if (dstY < dstH-2) { |
| 666 | 668 | const int16_t **lumSrcPtr= (const int16_t **) lumPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize; |
| 667 | 669 | const int16_t **chrSrcPtr= (const int16_t **) chrPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize; |
| @@ -786,8 +788,10 @@ static int swScale_c(SwsContext *c, const uint8_t* src[], int srcStride[], · 118 unmodified lines | ||
| 786 | 788 | if ((dstFormat == PIX_FMT_YUVA420P) && !alpPixBuf) |
| 787 | 789 | fillPlane(dst[3], dstStride[3], dstW, dstY-lastDstY, lastDstY, 255); |
| 788 | 790 | |
| 789 | − if (HAVE_MMX2 && av_get_cpu_flags() & AV_CPU_FLAG_MMX2) | |
| 791 | +#if HAVE_MMX2 | |
| 792 | + if (av_get_cpu_flags() & AV_CPU_FLAG_MMX2) | |
| 790 | 793 | __asm__ volatile("sfence":::"memory"); |
| 794 | +#endif | |
| 791 | 795 | emms_c(); |
| 792 | 796 | |
| 793 | 797 | /* store changed local vars back in the context */ |