Skip to content

Commit

Permalink
swscale: bury one more piece of inline asm under HAVE_INLINE_ASM.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbultje committed Jul 30, 2012
1 parent 29d7027 commit 8e5d71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libswscale/swscale.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ static int swScale(SwsContext *c, const uint8_t *src[],
if (isPlanar(dstFormat) && isALPHA(dstFormat) && !alpPixBuf)
fillPlane(dst[3], dstStride[3], dstW, dstY - lastDstY, lastDstY, 255);

#if HAVE_MMX2
#if HAVE_MMX2 && HAVE_INLINE_ASM
if (av_get_cpu_flags() & AV_CPU_FLAG_MMX2)
__asm__ volatile ("sfence" ::: "memory");
#endif
Expand Down

0 comments on commit 8e5d71d

Please sign in to comment.