]> git.sesse.net Git - vlc/commitdiff
i420->yuv2 converter: disabled altivec usage if video's width isn't a multiple of 32
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 12 Sep 2010 13:19:54 +0000 (15:19 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 12 Sep 2010 13:19:54 +0000 (15:19 +0200)
This fixes the video output on PowerPC based Macs. A proper fix would be welcome.

Forward-port of [c036a9961b04ef03e8ae6951c78f1e550e57395a]

modules/video_chroma/i420_yuy2.c

index 57a7af6de059360a458a136885b2d805da2ebf01..09a904f951593daaf124516cc71212867c77e361 100644 (file)
@@ -241,6 +241,8 @@ static void I420_YUY2( filter_t *p_filter, picture_t *p_source,
             }
         }
     }
+#warning FIXME: converting widths % 16 but !widths % 32 is broken on altivec
+#if 0
     else if( !( ( p_filter->fmt_in.video.i_width % 16 ) |
                 ( p_filter->fmt_in.video.i_height % 4 ) ) )
     {
@@ -273,6 +275,7 @@ static void I420_YUY2( filter_t *p_filter, picture_t *p_source,
             }
         }
     }
+#endif
     else
     {
         /* Crap, use the C version */