x86/fladsp: add missing check to ff_flacdsp_init_x86()

Fixes compilation with flac decoder disabled and encoder enabled

Signed-off-by: James Almer <jamrial@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
James Almer 2014-02-16 03:02:47 -03:00 committed by Michael Niedermayer
parent 8fe1076094
commit ec482e738d

View File

@ -38,7 +38,7 @@ av_cold void ff_flacdsp_init_x86(FLACDSPContext *c, enum AVSampleFormat fmt,
c->lpc = ff_flac_lpc_32_sse4; c->lpc = ff_flac_lpc_32_sse4;
} }
if (EXTERNAL_XOP(cpu_flags)) { if (EXTERNAL_XOP(cpu_flags)) {
if (bps > 16) if (bps > 16 && CONFIG_FLAC_DECODER)
c->lpc = ff_flac_lpc_32_xop; c->lpc = ff_flac_lpc_32_xop;
} }
#endif #endif