forked from len0rd/rockbox
Ancient ffmpeg bug fix that should never have been missed. Prevents floating point value from truncating downward. My files are byte for byte identical with this fix, but the ffmpeg mailing list claims its important.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13846 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
39c56b3f17
commit
00b16fab6c
1 changed files with 3 additions and 2 deletions
|
@ -624,7 +624,8 @@ int wma_decode_init(WMADecodeContext* s, asf_waveformatex_t *wfx)
|
|||
bps = fixdiv64(tmp, tmp2);
|
||||
fixed64 tim = fixmul64byfixed(bps, s->frame_len);
|
||||
fixed64 tmpi = fixdiv64(tim,itofix64(8));
|
||||
s->byte_offset_bits = av_log2(fixtoi64(tmpi)) + 2;
|
||||
s->byte_offset_bits = av_log2(fixtoi64(tmpi+0x8000)) + 2;
|
||||
|
||||
|
||||
/* compute high frequency value and choose if noise coding should
|
||||
be activated */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue