projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76bec1d
)
Fix wma2 audio decoder
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Tue, 27 Dec 2005 19:58:04 +0000
(19:58 +0000)
committer
Roberto Togni
<r_togni@tiscali.it>
Tue, 27 Dec 2005 19:58:04 +0000
(19:58 +0000)
Patch by Reimar Doeffinger
Originally committed as revision 4779 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/wmadec.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmadec.c
b/libavcodec/wmadec.c
index 147bb5abbbf906b3c746be07067ea24e9d76fc5b..c6aeab59d3656227113384dd1dc9ddb1adfa14bd 100644
(file)
--- 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 */