10l: Only set *compose97i *add_yblock to dsputils context if we are building with...
[ffmpeg.git] / libavcodec / dsputil.c
index 6bc59db9fafc8cda57b7df0d84ef0d13c5afbb05..87eb49baccc627ecf8dd5f5dffd0f1de99f05a62 100644 (file)
@@ -4048,9 +4048,11 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx)
     c->try_8x8basis= try_8x8basis_c;
     c->add_8x8basis= add_8x8basis_c;
 
+#ifdef CONFIG_SNOW_ENCODER
     c->vertical_compose97i = ff_snow_vertical_compose97i;
     c->horizontal_compose97i = ff_snow_horizontal_compose97i;
     c->inner_add_yblock = ff_snow_inner_add_yblock;
+#endif
 
 #ifdef HAVE_MMX
     dsputil_init_mmx(c, avctx);