Diego Biurrun <[email protected]> writes: > diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c > index bd10054..9b8d7c0 100644 > --- a/libavcodec/dsputil.c > +++ b/libavcodec/dsputil.c > @@ -2790,25 +2790,27 @@ av_cold void ff_dsputil_init(DSPContext* c, > AVCodecContext *avctx) > > ff_check_alignment(); > > -#if CONFIG_ENCODERS > +#if CONFIG_FAANDCT || CONFIG_JPEGDCT > if (avctx->bits_per_raw_sample == 10) { > c->fdct = ff_jpeg_fdct_islow_10; > c->fdct248 = ff_fdct248_islow_10; > } else { > +#if CONFIG_FAANDCT > + if(avctx->dct_algo==FF_DCT_FAAN) { > + c->fdct = ff_faandct; > + c->fdct248 = ff_faandct248; > + } > +#endif > if(avctx->dct_algo==FF_DCT_FASTINT) { > c->fdct = ff_fdct_ifast; > c->fdct248 = ff_fdct_ifast248; > } > - else if(avctx->dct_algo==FF_DCT_FAAN) { > - c->fdct = ff_faandct; > - c->fdct248 = ff_faandct248; > - } > else { > c->fdct = ff_jpeg_fdct_islow_8; //slow/accurate/default > c->fdct248 = ff_fdct248_islow_8; > } > }
Why are you moving those lines? -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
