]> git.sesse.net Git - vlc/blobdiff - modules/video_chroma/i420_yuy2.c
Make I420_UYVY/MMX support widths non multiple of 8
[vlc] / modules / video_chroma / i420_yuy2.c
index 507a9717794df5497784edab16e5766143c7ea1e..9079438c0be9dbc2f907854e0dd58bb1469928a7 100644 (file)
@@ -382,6 +382,10 @@ static void I420_UYVY( vout_thread_t *p_vout, picture_t *p_source,
             MMX_CALL( MMX_YUV420_UYVY );
 #endif
         }
+        for( i_x = ( p_vout->render.i_width % 8 ) / 2; i_x--; )
+        {
+            C_YUV420_UYVY( );
+        }
 
         p_y1 += i_source_margin;
         p_y2 += i_source_margin;