Revision f1b163e0 libavformat/utils.c

View differences:

libavformat/utils.c
658 658
        if (bits_per_sample) {
659 659
            if (enc->channels == 0)
660 660
                return -1;
661
            frame_size = size / ((bits_per_sample >> 3) * enc->channels);
661
            frame_size = (size << 3) / (bits_per_sample * enc->channels);
662 662
        } else {
663 663
            /* used for example by ADPCM codecs */
664 664
            if (enc->bit_rate == 0)

Also available in: Unified diff