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
661 if (!enough_lines)661 if (!enough_lines)
662 break; //we can't output a dstY line so let's try with the next slice662 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 if (dstY < dstH-2) {667 if (dstY < dstH-2) {
666 const int16_t **lumSrcPtr= (const int16_t **) lumPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize;668 const int16_t **lumSrcPtr= (const int16_t **) lumPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize;
667 const int16_t **chrSrcPtr= (const int16_t **) chrPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize;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 if ((dstFormat == PIX_FMT_YUVA420P) && !alpPixBuf)788 if ((dstFormat == PIX_FMT_YUVA420P) && !alpPixBuf)
787 fillPlane(dst[3], dstStride[3], dstW, dstY-lastDstY, lastDstY, 255);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 __asm__ volatile("sfence":::"memory");793 __asm__ volatile("sfence":::"memory");
794#endif
791 emms_c();795 emms_c();
792 796
793 /* store changed local vars back in the context */797 /* 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