Fix #11897 - Multiple 'divide by zero' while playing particular APE on Clip+. Problem and solution observed and checked on Gigabeat S by myself. Fix submitted by Mikhail Titov resolves it. range_decode_short was declared as returing 'int short' rather than 'unsigned short' resulting in unwanted sign extension.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29208 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
988b3083df
commit
62fb090ac4
2 changed files with 2 additions and 1 deletions
|
@ -215,7 +215,7 @@ static inline unsigned char decode_byte(void)
|
|||
return tmp;
|
||||
}
|
||||
|
||||
static inline int short range_decode_short(void)
|
||||
static inline unsigned short range_decode_short(void)
|
||||
{ int tmp = range_decode_culshift(16);
|
||||
range_decode_update( 1,tmp);
|
||||
return tmp;
|
||||
|
|
|
@ -583,6 +583,7 @@ Robert Horn
|
|||
Ante Maretic
|
||||
Benjamin Brown
|
||||
Uwe Wiebach
|
||||
Mikhail Titov
|
||||
|
||||
The libmad team
|
||||
The wavpack team
|
||||
|
|
Loading…
Reference in a new issue