p_y1 = p_y2;
p_y2 += p_source->p[Y_PLANE].i_pitch;
- for( i_x = p_vout->render.i_width / 8 ; i_x-- ; )
- {
#if !defined (MODULE_NAME_IS_i420_yuy2_mmx)
+ for( i_x = p_vout->render.i_width / 2 ; i_x-- ; )
+ {
C_YUV420_YUYV( );
- C_YUV420_YUYV( );
- C_YUV420_YUYV( );
- C_YUV420_YUYV( );
+ }
#else
+ for( i_x = p_vout->render.i_width / 8 ; i_x-- ; )
+ {
MMX_CALL( MMX_YUV420_YUYV );
-#endif
}
+ for( i_x = ( p_vout->render.i_width % 8 ) / 2; i_x-- ; )
+ {
+ C_YUV420_YUYV( );
+ }
+#endif
p_y1 += i_source_margin;
p_y2 += i_source_margin;