X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fwmavoice.c;h=ec682b6483268d03479c3bfe11c5e52ec917c585;hb=36d6b545a1a5309b3d9223b0db40ad2879817af5;hp=088a6d3463fd63c327e1e731cda36bf2fdc9dfad;hpb=593a8614705eb1b098185db6e4d227c67e8c3597;p=ffmpeg diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index 088a6d3463f..ec682b64832 100644 --- a/libavcodec/wmavoice.c +++ b/libavcodec/wmavoice.c @@ -287,7 +287,7 @@ typedef struct { } WMAVoiceContext; /** - * Sets up the variable bit mode (VBM) tree from container extradata. + * Set up the variable bit mode (VBM) tree from container extradata. * @param gb bit I/O context. * The bit context (s->gb) should be loaded with byte 23-46 of the * container extradata (i.e. the ones containing the VBM tree). @@ -697,7 +697,7 @@ static void wiener_denoise(WMAVoiceContext *s, int fcb_type, ff_rdft_calc(&s->rdft, coeffs); synth_pf[0] *= coeffs[0]; synth_pf[1] *= coeffs[1]; - for (n = 1; n < 128; n++) { + for (n = 1; n < 64; n++) { float v1 = synth_pf[n * 2], v2 = synth_pf[n * 2 + 1]; synth_pf[n * 2] = v1 * coeffs[n * 2] - v2 * coeffs[n * 2 + 1]; synth_pf[n * 2 + 1] = v2 * coeffs[n * 2] + v1 * coeffs[n * 2 + 1]; @@ -1342,7 +1342,7 @@ static void synth_block_fcb_acb(WMAVoiceContext *s, GetBitContext *gb, wmavoice_ipol2_coeffs, 4, idx, 8, size); } else - av_memcpy_backptr(excitation, sizeof(float) * block_pitch, + av_memcpy_backptr((uint8_t *) excitation, sizeof(float) * block_pitch, sizeof(float) * size); }