Revision ba9516cc

View differences:

libavcodec/vmdav.c
486 486
        memset(data, 0, silent_size);
487 487
        data += silent_size;
488 488
    }
489
        if (s->bits == 16)
490
            vmdaudio_decode_audio(s, data, buf, data_size, s->channels == 2);
491
        else {
492
            /* copy the data but convert it to signed */
493
            for (i = 0; i < data_size; i++){
494
                *data++ = buf[i] + 0x80;
495
                *data++ = buf[i] + 0x80;
496
            }
489
    if (s->bits == 16)
490
        vmdaudio_decode_audio(s, data, buf, data_size, s->channels == 2);
491
    else {
492
        /* copy the data but convert it to signed */
493
        for (i = 0; i < data_size; i++){
494
            *data++ = buf[i] + 0x80;
495
            *data++ = buf[i] + 0x80;
497 496
        }
497
    }
498 498

  
499 499
    return silent_size + data_size * 2;
500 500
}

Also available in: Unified diff