Commit 2903960f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

deinterlace: fix build

Regression hidden by 6fe7eb60.
parent 996bff47
......@@ -535,8 +535,8 @@ static inline void XDeintBand8x8MMXEXT( uint8_t *dst, int i_dst,
void RenderX( picture_t *p_outpic, picture_t *p_pic )
{
int i_plane;
#if defined (CAN_COMPILE_MMXEXT) && !defined(__SSE__)
const unsigned u_cpu = vlc_CPU();
#if defined (CAN_COMPILE_MMXEXT)
const bool mmxext = vlc_CPU_MMXEXT();
#endif
/* Copy image and skip lines */
......@@ -559,15 +559,11 @@ void RenderX( picture_t *p_outpic, picture_t *p_pic )
uint8_t *src = &p_pic->p[i_plane].p_pixels[8*y*i_src];
#ifdef CAN_COMPILE_MMXEXT
# ifndef __SSE__
if( u_cpu & VLC_CPU_MMXEXT )
# endif
if( mmxext )
XDeintBand8x8MMXEXT( dst, i_dst, src, i_src, i_mbx, i_modx );
else
#endif
#ifndef __SSE__
XDeintBand8x8C( dst, i_dst, src, i_src, i_mbx, i_modx );
#endif
}
/* Last line (C only)*/
......@@ -590,9 +586,7 @@ void RenderX( picture_t *p_outpic, picture_t *p_pic )
}
#ifdef CAN_COMPILE_MMXEXT
# ifndef __SSE__
if( u_cpu & VLC_CPU_MMXEXT )
# endif
if( mmxext )
emms();
#endif
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment