diff options
author | Martin Storsjö <martin@martin.st> | 2014-01-22 16:58:36 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-01-22 18:42:38 +0200 |
commit | cff480e49d73640c980922626e57c9889bb4b18d (patch) | |
tree | be5d83c644649a320431a31db71b2c3841a2dac6 /libavcodec/mpegvideo_enc.c | |
parent | 19987fa18ceafce5e6bc4eca7d130b29688b2ebd (diff) | |
download | ffmpeg-cff480e49d73640c980922626e57c9889bb4b18d.tar.gz |
mpegvideo_enc: Don't call ff_h263dsp_init unconditionally
This fixes builds with e.g. --disable-decoders --disable-encoders
--enable-encoder=mjpeg.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index f04926ace3..5da5a25f9e 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -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) |