Mercurial > libavformat.hg
diff utils.c @ 1160:c10e0dbce7de libavformat
set proper bits_per_sample value for ADPCM codecs
author | aurel |
---|---|
date | Sat, 08 Jul 2006 07:14:00 +0000 |
parents | 51d3928ab00d |
children | d89d7ef290da |
line wrap: on
line diff
--- a/utils.c Fri Jul 07 22:42:36 2006 +0000 +++ b/utils.c Sat Jul 08 07:14:00 2006 +0000 @@ -658,7 +658,7 @@ if (bits_per_sample) { if (enc->channels == 0) return -1; - frame_size = size / ((bits_per_sample >> 3) * enc->channels); + frame_size = (size << 3) / (bits_per_sample * enc->channels); } else { /* used for example by ADPCM codecs */ if (enc->bit_rate == 0)