]> git.sesse.net Git - ffmpeg/commitdiff
practically disabling altivec resampling code (some ppl said its broken) patch by...
authorDieter <freebsd@sopwith.solgatos.com>
Fri, 6 Dec 2002 17:58:21 +0000 (17:58 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Dec 2002 17:58:21 +0000 (17:58 +0000)
Originally committed as revision 1321 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/imgresample.c

index b1cfab97344fbe18c2fc53a80f60f91396418026..28147fc72aa99599d72b6daf25bef2cc08e3ea7e 100644 (file)
@@ -512,7 +512,7 @@ static void component_resample(ImgReSampleContext *s,
         else
 #endif
 #ifdef HAVE_ALTIVEC
-            if ((mm_flags & MM_ALTIVEC) && NB_TAPS == 4 && FILTER_BITS == 8)
+            if ((mm_flags & MM_ALTIVEC) && NB_TAPS == 4 && FILTER_BITS <= 6)
                 v_resample16_altivec(output, owidth,
                                 s->line_buf + (ring_y - NB_TAPS + 1) * owidth, owidth,
                                 &s->v_filters[phase_y][0]);