Revision af0a61cc

View differences:

libavcodec/wmavoice.c
1033 1033
static void aw_pulse_set2(WMAVoiceContext *s, GetBitContext *gb,
1034 1034
                          int block_idx, AMRFixed *fcb)
1035 1035
{
1036
    uint16_t use_mask[7]; // only 5 are used, rest is padding
1036
    uint16_t use_mask_mem[9]; // only 5 are used, rest is padding
1037
    uint16_t *use_mask = use_mask_mem + 2;
1037 1038
    /* in this function, idx is the index in the 80-bit (+ padding) use_mask
1038 1039
     * bit-array. Since use_mask consists of 16-bit values, the lower 4 bits
1039 1040
     * of idx are the position of the bit within a particular item in the
......
1065 1066
    /* aw_pulse_set1() already applies pulses around pulse_off (to be exactly,
1066 1067
     * in the range of [pulse_off, pulse_off + s->aw_pulse_range], and thus
1067 1068
     * we exclude that range from being pulsed again in this function. */
1069
    memset(&use_mask[-2], 0, 2 * sizeof(use_mask[0]));
1068 1070
    memset( use_mask,   -1, 5 * sizeof(use_mask[0]));
1069 1071
    memset(&use_mask[5], 0, 2 * sizeof(use_mask[0]));
1070 1072
    if (s->aw_n_pulses[block_idx] > 0)

Also available in: Unified diff