[FFmpeg-cvslog] lavc/aarch64: fix relocation out of range error

Zhao Zhili git at videolan.org
Sat Sep 25 21:55:42 EEST 2021


ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Mon Sep 13 15:24:09 2021 +0800| [378ad2f8fd7c5b5d9d1b3170282ce6b8a289ba07] | committer: Martin Storsjö

lavc/aarch64: fix relocation out of range error

Use a temporary label instead of global function symbol for b.gt.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=378ad2f8fd7c5b5d9d1b3170282ce6b8a289ba07
---

 libavcodec/aarch64/videodsp.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/aarch64/videodsp.S b/libavcodec/aarch64/videodsp.S
index 24067cc2af..fe2da0658e 100644
--- a/libavcodec/aarch64/videodsp.S
+++ b/libavcodec/aarch64/videodsp.S
@@ -19,10 +19,11 @@
 #include "libavutil/aarch64/asm.S"
 
 function ff_prefetch_aarch64, export=1
+1:
         subs            w2,  w2,  #2
         prfm            pldl1strm, [x0]
         prfm            pldl1strm, [x0,  x1]
         add             x0,  x0,  x1,  lsl #1
-        b.gt            X(ff_prefetch_aarch64)
+        b.gt            1b
         ret
 endfunc



More information about the ffmpeg-cvslog mailing list