mpegvideo_enc: Don't call ff_h263dsp_init unconditionally
[ffmpeg.git] / libavcodec / mpegvideo_enc.c
index f04926a..5da5a25 100644 (file)
@@ -708,7 +708,8 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx)
                           2 * 64 * sizeof(uint16_t), fail);
     }
 
-    ff_h263dsp_init(&s->h263dsp);
+    if (CONFIG_H263_ENCODER)
+        ff_h263dsp_init(&s->h263dsp);
     if (!s->dct_quantize)
         s->dct_quantize = ff_dct_quantize_c;
     if (!s->denoise_dct)