changeset 5175:830576859f71 libavcodec

move dct_quantize and denoise_dct function pointers initialization to C functions after arch dependant initializations
author benoit
date Wed, 20 Jun 2007 11:01:50 +0000
parents 2e038003cdfb
children 82f7eaa32f46
files mpegvideo.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Wed Jun 20 08:53:53 2007 +0000
+++ b/mpegvideo.c	Wed Jun 20 11:01:50 2007 +0000
@@ -271,11 +271,6 @@
         s->dct_unquantize_mpeg2_intra = dct_unquantize_mpeg2_intra_bitexact;
     s->dct_unquantize_mpeg2_inter = dct_unquantize_mpeg2_inter_c;
 
-#ifdef CONFIG_ENCODERS
-    s->dct_quantize= dct_quantize_c;
-    s->denoise_dct= denoise_dct_c;
-#endif //CONFIG_ENCODERS
-
 #if defined(HAVE_MMX)
     MPV_common_init_mmx(s);
 #elif defined(ARCH_ALPHA)
@@ -293,6 +288,10 @@
 #endif
 
 #ifdef CONFIG_ENCODERS
+    if(!s->dct_quantize)
+        s->dct_quantize= dct_quantize_c;
+    if(!s->denoise_dct)
+        s->denoise_dct= denoise_dct_c;
     s->fast_dct_quantize= s->dct_quantize;
 
     if(s->flags&CODEC_FLAG_TRELLIS_QUANT){