forked from len0rd/rockbox
ADPCM wav codec fix by Frederic Devernay
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8899 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ea5df70e46
commit
8fc55d55eb
1 changed files with 6 additions and 4 deletions
|
|
@ -532,13 +532,15 @@ enum codec_status codec_start(struct codec_api* api)
|
|||
blockalign, channels, bitspersample,
|
||||
int16_samples+i*samplesperblock*channels,
|
||||
&decodedsize)
|
||||
!= CODEC_OK)
|
||||
!= CODEC_OK) {
|
||||
i = CODEC_ERROR;
|
||||
goto exit;
|
||||
if (decodedsize != samplesperblock)
|
||||
}
|
||||
if (decodedsize != samplesperblock) {
|
||||
i = CODEC_ERROR;
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
wavbufsize = nblocks*samplesperblock*channels*2;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue