# HG changeset patch # User gpoirier # Date 1203370531 0 # Node ID 80c7e9c015c6e221c1d5756bb6f10d9ee6f14ffe # Parent b2d487e54407d5c08a8d90aeb8df6f13407cf39d fix crash on non-AltiVec powered machines: MPV_common_init_altivec doesn't check mm_flags Patch by Alexander Strange %astrange A ithinksw PP com % diff -r b2d487e54407 -r 80c7e9c015c6 ppc/mpegvideo_altivec.c --- a/ppc/mpegvideo_altivec.c Sun Feb 17 03:44:47 2008 +0000 +++ b/ppc/mpegvideo_altivec.c Mon Feb 18 21:35:31 2008 +0000 @@ -608,6 +608,8 @@ void MPV_common_init_altivec(MpegEncContext *s) { + if (mm_flags & MM_ALTIVEC == 0) return; + if (s->avctx->lowres==0) { if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||