diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2005-12-27 19:58:04 +0000 |
---|---|---|
committer | Roberto Togni <r_togni@tiscali.it> | 2005-12-27 19:58:04 +0000 |
commit | b6204677f65189bf1fa201051e660ba74f1246f3 (patch) | |
tree | 799a057df386fde86c16a78020103782bc780106 | |
parent | 76bec1d85c5bff00e3ba227942207d733aeb56ef (diff) | |
download | ffmpeg-b6204677f65189bf1fa201051e660ba74f1246f3.tar.gz |
Fix wma2 audio decoder
Patch by Reimar Doeffinger
Originally committed as revision 4779 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/wmadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 147bb5abbb..c6aeab59d3 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -284,7 +284,7 @@ static int wma_decode_init(AVCodecContext * avctx) } bps = (float)s->bit_rate / (float)(s->nb_channels * s->sample_rate); - s->byte_offset_bits = av_log2((int)(bps * s->frame_len / 8.0)) + 2; + s->byte_offset_bits = av_log2((int)(bps * s->frame_len / 8.0 + 0.5)) + 2; /* compute high frequency value and choose if noise coding should be activated */ |