diff options
author | Thom Johansen <thomj@rockbox.org> | 2006-08-02 17:08:43 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2006-08-02 17:08:43 +0000 |
commit | bdaac210862ebd0b288701901f4528b7e5aa83aa (patch) | |
tree | b0871d142c14db90c8068747a672121fae2a3edb /apps | |
parent | 879d8532166bf673c079b9bbcc36948a4ec87a6c (diff) |
Fix erronous ARM assembler case for order 1 frames in the FLAC codec. Fixes FS #5759.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10411 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/libffmpegFLAC/arm.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libffmpegFLAC/arm.S b/apps/codecs/libffmpegFLAC/arm.S index 27b38efa8d..39c4b36cda 100644 --- a/apps/codecs/libffmpegFLAC/arm.S +++ b/apps/codecs/libffmpegFLAC/arm.S @@ -202,14 +202,14 @@ lpc_decode_arm: b .exit .order1: - ldr r5, [r4] - ldr r4, [r3], #4 + ldr r5, [r4] @ load the one coef we need + ldr r4, [r3], #4 @ load one history sample, r3 now points to residual .loop1: - mul r2, r4, r5 - ldr r4, [r3] - add r2, r4, r2, asr r1 - str r2, [r3], #4 - subs r0, r0, #1 + mul r2, r4, r5 @ multiply coef by history sample + ldr r4, [r3] @ load residual + add r4, r4, r2, asr r1 @ add result to residual + str r4, [r3], #4 @ place r3 at next residual, we already have + subs r0, r0, #1 @ the current sample in r4 for the next iteration bne .loop1 b .exit |