- 20100116 snapshot, requires recent x264 - fix textrels on x86_64 in a different way (patch by Reimar Döffinger) - use -mlongcall instead of -fPIC to fix rfbz#804, it's fasterel8
parent
e657d4a321
commit
527ff746d3
@ -1 +1 @@
|
||||
ffmpeg-20091026.tar.bz2
|
||||
ffmpeg-20100116.tar.bz2
|
||||
|
@ -1,18 +0,0 @@
|
||||
diff -up ffmpeg-20091026/configure~ ffmpeg-20091026/configure
|
||||
--- ffmpeg-20091026/configure~ 2009-10-24 19:24:25.000000000 +0200
|
||||
+++ ffmpeg-20091026/configure 2009-11-07 16:35:15.000000000 +0100
|
||||
@@ -1805,12 +1805,14 @@ case "$arch" in
|
||||
"Power Macintosh"|ppc|powerpc)
|
||||
arch="ppc"
|
||||
enable fast_unaligned
|
||||
+ spic=$shared
|
||||
;;
|
||||
ppc64)
|
||||
arch="ppc"
|
||||
subarch="ppc64"
|
||||
enable fast_64bit
|
||||
enable fast_unaligned
|
||||
+ spic=$shared
|
||||
;;
|
||||
s390|s390x)
|
||||
arch="s390"
|
@ -1,12 +1,41 @@
|
||||
diff -up ffmpeg-0.5/libavcodec/x86/fft_mmx.asm.textrel ffmpeg-0.5/libavcodec/x86/fft_mmx.asm
|
||||
--- ffmpeg-0.5/libavcodec/x86/fft_mmx.asm.textrel 2009-02-13 01:57:22.000000000 +0100
|
||||
+++ ffmpeg-0.5/libavcodec/x86/fft_mmx.asm 2009-03-10 22:09:16.000000000 +0100
|
||||
@@ -448,6 +448,8 @@ fft %+ n %+ %3%2:
|
||||
diff -up ffmpeg-20100116/libavcodec/x86/fft_mmx.asm.textrel ffmpeg-20100116/libavcodec/x86/fft_mmx.asm
|
||||
--- ffmpeg-20100116/libavcodec/x86/fft_mmx.asm.textrel 2010-01-16 14:24:37.000000000 +0100
|
||||
+++ ffmpeg-20100116/libavcodec/x86/fft_mmx.asm 2010-01-16 15:36:17.000000000 +0100
|
||||
@@ -419,18 +419,23 @@ DECL_PASS pass_interleave_3dn, PASS_BIG
|
||||
%define pass_3dn2 pass_3dn
|
||||
%define pass_interleave_3dn2 pass_interleave_3dn
|
||||
|
||||
%ifidn __OUTPUT_FORMAT__,macho64
|
||||
section .rodata
|
||||
+%ifdef PIC
|
||||
+%define SECTION_REL - $$
|
||||
+%else
|
||||
+section .data
|
||||
+%define SECTION_REL
|
||||
+%endif
|
||||
|
||||
%macro DECL_FFT 2-3 ; nbits, cpu, suffix
|
||||
-%xdefine list_of_fft fft4%2, fft8%2
|
||||
+%xdefine list_of_fft fft4%2 SECTION_REL, fft8%2 SECTION_REL
|
||||
%if %1==5
|
||||
-%xdefine list_of_fft list_of_fft, fft16%2
|
||||
+%xdefine list_of_fft list_of_fft, fft16%2 SECTION_REL
|
||||
%endif
|
||||
|
||||
align 8
|
||||
%assign n 1<<%1
|
||||
%rep 17-%1
|
||||
%assign n2 n/2
|
||||
%assign n4 n/4
|
||||
-%xdefine list_of_fft list_of_fft, fft %+ n %+ %3%2
|
||||
+%xdefine list_of_fft list_of_fft, fft %+ n %+ %3%2 SECTION_REL
|
||||
|
||||
align 16
|
||||
fft %+ n %+ %3%2:
|
||||
@@ -462,6 +467,10 @@ section .text
|
||||
cglobal fft_dispatch%3%2, 2,5,8, z, nbits
|
||||
lea r2, [dispatch_tab%3%2 GLOBAL]
|
||||
mov r2, [r2 + (nbitsq-2)*gprsize]
|
||||
+%ifdef PIC
|
||||
+ lea r3, [$$ GLOBAL]
|
||||
+ add r2, r3
|
||||
+%endif
|
||||
call r2
|
||||
RET
|
||||
%endmacro ; DECL_FFT
|
||||
|
Loading…
Reference in new issue