Changeset c3299726 in ffmpeg


Ignore:
Timestamp:
Sep 30, 2011, 1:02:02 AM (13 years ago)
Author:
Michael Niedermayer <michaelni@gmx.at>
Branches:
master
Children:
f42b319
Parents:
8045af65
Message:

g729: dont force all cpu optims to off but override just the one that doesnt work.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libavcodec/g729dec.c

    r8045af65 rc3299726  
    333333}
    334334
     335static int32_t scalarproduct_int16_c(const int16_t * v1, const int16_t * v2, int order, int shift)
     336{
     337    int res = 0;
     338
     339    while (order--)
     340        res += (*v1++ * *v2++) >> shift;
     341
     342    return res;
     343}
     344
    335345static av_cold int decoder_init(AVCodecContext * avctx)
    336346{
     
    368378        ctx->quant_energy[i] = -14336; // -14 in (5.10)
    369379
    370     avctx->dsp_mask= ~AV_CPU_FLAG_FORCE;
    371380    dsputil_init(&ctx->dsp, avctx);
     381    ctx->dsp.scalarproduct_int16 = scalarproduct_int16_c;
    372382
    373383    return 0;
Note: See TracChangeset for help on using the changeset viewer.