aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/arm/ac3dsp_armv6.S
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-08-02 19:17:16 +0100
committerMans Rullgard <mans@mansr.com>2012-09-20 17:07:18 +0100
commita27a690fac6d9f42464039702f8cde6777778a53 (patch)
tree239f30a80039406ad5a41205b0fe26a92b797928 /libavcodec/arm/ac3dsp_armv6.S
parent0122118ec32087cf3522bf14a1c4e34cb7d95a67 (diff)
downloadffmpeg-a27a690fac6d9f42464039702f8cde6777778a53.tar.gz
ARM: swap source operands in some add instructions
This allows using a 16-bit opcode when generating Thumb2 code. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm/ac3dsp_armv6.S')
-rw-r--r--libavcodec/arm/ac3dsp_armv6.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/arm/ac3dsp_armv6.S b/libavcodec/arm/ac3dsp_armv6.S
index f6f297a532..2028d0b89f 100644
--- a/libavcodec/arm/ac3dsp_armv6.S
+++ b/libavcodec/arm/ac3dsp_armv6.S
@@ -32,7 +32,7 @@ function ff_ac3_bit_alloc_calc_bap_armv6, export=1
ldrb r4, [r4, r2]
add r1, r1, r2, lsl #1 @ psd + start
add r0, r0, r4, lsl #1 @ mask + band
- add r4, lr, r4
+ add r4, r4, lr
add r7, r7, r2 @ bap + start
1:
ldrsh r9, [r0], #2 @ mask[band]