diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 62c93458b7..eb31814780 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -226,7 +226,8 @@ av_cold int ff_dct_encode_init(MpegEncContext *s) { if (ARCH_X86) ff_dct_encode_init_x86(s); - 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)