From ec482e738ddcb90b156cf306eb1911f7038efa19 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 16 Feb 2014 03:02:47 -0300 Subject: [PATCH] x86/fladsp: add missing check to ff_flacdsp_init_x86() Fixes compilation with flac decoder disabled and encoder enabled Signed-off-by: James Almer Reviewed-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/x86/flacdsp_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/x86/flacdsp_init.c b/libavcodec/x86/flacdsp_init.c index 151ce3401c..a071b3d3b7 100644 --- a/libavcodec/x86/flacdsp_init.c +++ b/libavcodec/x86/flacdsp_init.c @@ -38,7 +38,7 @@ av_cold void ff_flacdsp_init_x86(FLACDSPContext *c, enum AVSampleFormat fmt, c->lpc = ff_flac_lpc_32_sse4; } if (EXTERNAL_XOP(cpu_flags)) { - if (bps > 16) + if (bps > 16 && CONFIG_FLAC_DECODER) c->lpc = ff_flac_lpc_32_xop; } #endif