Revision 994e445a

View differences:

libavcodec/vmdav.c
539 539
    } else if (buf[6] == 2) {
540 540
        /* initial chunk, may contain audio and silence */
541 541
        uint32_t flags = AV_RB32(p);
542
        int raw_block_size = s->block_align * s->bits / 8;
542
        int raw_block_size = s->block_align *
543
                             (av_get_bits_per_sample_fmt(avctx->sample_fmt) / 8);
543 544
        int silent_chunks;
544 545
        if(flags == 0xFFFFFFFF)
545 546
            silent_chunks = 32;

Also available in: Unified diff