From 9ed6f9a17cc1f7d3699a1223783dadc1ee222069 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Mon, 20 Jul 2015 10:46:15 +0200 Subject: [PATCH] arm: use a local label instead of the function symbol in ff_prefetch_arm Avoids a relocation which might end out of range for thumb2. Reported-By: Ludovic Fauvet Bug-Id: https://bugs.webkit.org/show_bug.cgi?id=137022 CC: libav-stable@libav.org --- libavcodec/arm/videodsp_armv5te.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/arm/videodsp_armv5te.S b/libavcodec/arm/videodsp_armv5te.S index bbd0a61da6..0510019f03 100644 --- a/libavcodec/arm/videodsp_armv5te.S +++ b/libavcodec/arm/videodsp_armv5te.S @@ -23,9 +23,10 @@ #include "libavutil/arm/asm.S" function ff_prefetch_arm, export=1 +1: subs r2, r2, #1 pld [r0] add r0, r0, r1 - bne X(ff_prefetch_arm) + bne 1b bx lr endfunc