changeset 5541:6c385356e61f libavcodec

special handling for vp3 idct, use the c reference
author mhoffman
date Mon, 13 Aug 2007 14:16:20 +0000
parents 9b20d2534c97
children b0a566346fb1
files bfin/dsputil_bfin.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
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;
+    }
 }