History

swscale: unbreak the build on non-x86 systems.

Ronald S. Bultje committed 15 years ago

Commit a724ee61 parent 1bb0f0c1 file · +6 −2Browse files

Unified · Split

libswscale/swscale_template.c+6−2
@@ -661,7 +661,9 @@ static int swScale_c(SwsContext *c, const uint8_t* src[], int srcStride[], · 660 unmodified lines
661661 if (!enough_lines)
662662 break; //we can't output a dstY line so let's try with the next slice
663663
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
665667 if (dstY < dstH-2) {
666668 const int16_t **lumSrcPtr= (const int16_t **) lumPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize;
667669 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
786788 if ((dstFormat == PIX_FMT_YUVA420P) && !alpPixBuf)
787789 fillPlane(dst[3], dstStride[3], dstW, dstY-lastDstY, lastDstY, 255);
788790
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)
790793 __asm__ volatile("sfence":::"memory");
794+#endif
791795 emms_c();
792796
793797 /* store changed local vars back in the context */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t