mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
swscale: unbreak the build on non-x86 systems.
This commit is contained in:
parent
1bb0f0c925
commit
a724ee6265
@ -661,7 +661,9 @@ static int swScale_c(SwsContext *c, const uint8_t* src[], int srcStride[],
|
|||||||
if (!enough_lines)
|
if (!enough_lines)
|
||||||
break; //we can't output a dstY line so let's try with the next slice
|
break; //we can't output a dstY line so let's try with the next slice
|
||||||
|
|
||||||
if (HAVE_MMX) updateMMXDitherTables(c, dstY, lumBufIndex, chrBufIndex, lastInLumBuf, lastInChrBuf);
|
#if HAVE_MMX
|
||||||
|
updateMMXDitherTables(c, dstY, lumBufIndex, chrBufIndex, lastInLumBuf, lastInChrBuf);
|
||||||
|
#endif
|
||||||
if (dstY < dstH-2) {
|
if (dstY < dstH-2) {
|
||||||
const int16_t **lumSrcPtr= (const int16_t **) lumPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize;
|
const int16_t **lumSrcPtr= (const int16_t **) lumPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize;
|
||||||
const int16_t **chrSrcPtr= (const int16_t **) chrPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize;
|
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[],
|
|||||||
if ((dstFormat == PIX_FMT_YUVA420P) && !alpPixBuf)
|
if ((dstFormat == PIX_FMT_YUVA420P) && !alpPixBuf)
|
||||||
fillPlane(dst[3], dstStride[3], dstW, dstY-lastDstY, lastDstY, 255);
|
fillPlane(dst[3], dstStride[3], dstW, dstY-lastDstY, lastDstY, 255);
|
||||||
|
|
||||||
if (HAVE_MMX2 && av_get_cpu_flags() & AV_CPU_FLAG_MMX2)
|
#if HAVE_MMX2
|
||||||
|
if (av_get_cpu_flags() & AV_CPU_FLAG_MMX2)
|
||||||
__asm__ volatile("sfence":::"memory");
|
__asm__ volatile("sfence":::"memory");
|
||||||
|
#endif
|
||||||
emms_c();
|
emms_c();
|
||||||
|
|
||||||
/* store changed local vars back in the context */
|
/* store changed local vars back in the context */
|
||||||
|
Loading…
Reference in New Issue
Block a user