Mercurial > libavformat.hg
changeset 1160:c10e0dbce7de libavformat
set proper bits_per_sample value for ADPCM codecs
author | aurel |
---|---|
date | Sat, 08 Jul 2006 07:14:00 +0000 |
parents | 712f2acca29a |
children | b340deaf925b |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)