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:
Michael Sevakis 2011-02-05 09:59:36 +00:00
parent 988b3083df
commit 62fb090ac4
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -583,6 +583,7 @@ Robert Horn
Ante Maretic
Benjamin Brown
Uwe Wiebach
Mikhail Titov
The libmad team
The wavpack team