~ppsspp/ppsspp/ffmpeg-upstream

« back to all changes in this revision

Viewing changes to libavcodec/wmalosslessdec.c

  • Committer: Sérgio Benjamim
  • Date: 2015-07-20 03:55:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150720035505-i1jj1zcjcnd0mc7w
Updated to 2.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
488
488
                if ((1 << cbits) < s->cdlms[c][i].scaling + 1)
489
489
                    cbits++;
490
490
 
491
 
                s->cdlms[c][i].bitsend = get_bits(&s->gb, cbits) + 2;
 
491
                s->cdlms[c][i].bitsend = (cbits ? get_bits(&s->gb, cbits) : 0) + 2;
492
492
                shift_l = 32 - s->cdlms[c][i].bitsend;
493
493
                shift_r = 32 - s->cdlms[c][i].scaling - 2;
494
494
                for (j = 0; j < s->cdlms[c][i].coefsend; j++)
1005
1005
    if ((ret = ff_get_buffer(s->avctx, s->frame, 0)) < 0) {
1006
1006
        /* return an error if no frame could be decoded at all */
1007
1007
        s->packet_loss = 1;
 
1008
        s->frame->nb_samples = 0;
1008
1009
        return ret;
1009
1010
    }
1010
1011
    for (i = 0; i < s->num_channels; i++) {