diff bfin/dsputil_bfin.c @ 5541:6c385356e61f libavcodec

special handling for vp3 idct, use the c reference
author mhoffman
date Mon, 13 Aug 2007 14:16:20 +0000
parents 13b0682bdf11
children 930587f0259d
line wrap: on
line diff
--- a/bfin/dsputil_bfin.c	Mon Aug 13 13:20:16 2007 +0000
+++ b/bfin/dsputil_bfin.c	Mon Aug 13 14:16:20 2007 +0000
@@ -279,10 +279,12 @@
     c->put_no_rnd_pixels_tab[0][3] = ff_bfin_put_pixels16_xy2_nornd;
 
     c->idct_permutation_type = FF_NO_IDCT_PERM;
-    c->fdct               = ff_bfin_fdct;
-    c->idct               = ff_bfin_idct;
-    c->idct_add           = bfin_idct_add;
-    c->idct_put           = bfin_idct_put;
+    c->fdct                  = ff_bfin_fdct;
+    if (avctx->idct_algo!=FF_IDCT_VP3) {
+        c->idct               = ff_bfin_idct;
+        c->idct_add           = bfin_idct_add;
+        c->idct_put           = bfin_idct_put;
+    }
 }