diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2006-07-08 07:14:00 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2006-07-08 07:14:00 +0000 |
commit | f1b163e01e26e261890851c799fd508e99e2da46 (patch) | |
tree | d93f4950bd8dccc1bc79f81797206070e450852f /libavformat | |
parent | ab7e31539645795f3b41df8199c6c111e442351e (diff) | |
download | ffmpeg-f1b163e01e26e261890851c799fd508e99e2da46.tar.gz |
set proper bits_per_sample value for ADPCM codecs
Originally committed as revision 5666 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index d51e64ae48..f5598e57d7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -658,7 +658,7 @@ static int get_audio_frame_size(AVCodecContext *enc, int size) 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) |