1 Date: Mon, 1 Aug 2011 20:21:04 +0300
2 Subject: [libavcodec] arm: Avoid using the movw instruction needlessly
4 Content-Type: text/plain; charset=utf8
5 Content-Transfer-Encoding: 8bit
7 This fixes building for ARM11 without Thumb2.
9 Signed-off-by: Martin Storsjö <martin@martin.st>
11 [Arnout: backported to gst-ffmpeg, from ffmpeg 9a83adaf3]
12 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
14 gst-libs/ext/libav/libavcodec/arm/ac3dsp_armv6.S | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
17 diff --git a/gst-libs/ext/libav/libavcodec/arm/ac3dsp_armv6.S b/gst-libs/ext/libav/libavcodec/arm/ac3dsp_armv6.S
18 index d3058ff..b6aee86 100644
19 --- a/gst-libs/ext/libav/libavcodec/arm/ac3dsp_armv6.S
20 +++ b/gst-libs/ext/libav/libavcodec/arm/ac3dsp_armv6.S
21 @@ -37,7 +37,7 @@ function ff_ac3_bit_alloc_calc_bap_armv6, export=1
24 ldrsh r9, [r0], #2 @ mask[band]
27 sub r9, r9, r12 @ - snr_offset
29 ldrb r10, [r4], #1 @ band_start_tab[band++]
30 @@ -44,7 +44,7 @@ function ff_ac3_bit_alloc_calc_bap_armv6, export=1
31 subs r9, r9, r5 @ - floor
34 - and r9, r9, r8 @ & 0x1fe0
35 + and r9, r9, r8, lsl #1 @ & 0x1fe0
38 add r9, r9, r5 @ + floor => m