Revision 836fc777

View differences:

libavcodec/mpc7.c
192 192
    MPCContext *c = avctx->priv_data;
193 193
    GetBitContext gb;
194 194
    uint8_t *bits;
195
    int i, ch, t;
195
    int i, ch;
196 196
    int mb = -1;
197 197
    Band *bands = c->bands;
198 198
    int off;
......
211 211
    /* read subband indexes */
212 212
    for(i = 0; i <= c->maxbands; i++){
213 213
        for(ch = 0; ch < 2; ch++){
214
            int t = 4;
214 215
            if(i) t = get_vlc2(&gb, hdr_vlc.table, MPC7_HDR_BITS, 1) - 5;
215
            if(!i || (t == 4)) bands[i].res[ch] = get_bits(&gb, 4);
216
            if(t == 4) bands[i].res[ch] = get_bits(&gb, 4);
216 217
            else bands[i].res[ch] = bands[i-1].res[ch] + t;
217 218
        }
218 219

  

Also available in: Unified diff