aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-03-12 13:40:53 -0700
committerMichael Niedermayer <michaelni@gmx.at>2012-03-12 21:54:37 +0100
commit599888a48040f4086c9086aae958b7231b37afcc (patch)
tree8d3fc59ae0a3c6e8cc89f59d15d95cd316534188 /libavcodec
parent3069e70f62fa506c6b86bd7dac4fcb139c886f37 (diff)
downloadffmpeg-599888a48040f4086c9086aae958b7231b37afcc.tar.gz
Move struc FFTContext below SECTION_RODATA
Yasm creates an implicit unaligned text section if "struc" is used outside of any section: http://tortall.lighthouseapp.com/projects/78676-yasm/tickets/247 Since yasm only honors the "align" annotation on the first declaration of a section, this implicit text section causes all text section alignments to be ignored. Also fixes a yasm warning about it agnoring alignment. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/fft_mmx.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/fft_mmx.asm b/libavcodec/x86/fft_mmx.asm
index bea31fee9e..f8ccd3f5bb 100644
--- a/libavcodec/x86/fft_mmx.asm
+++ b/libavcodec/x86/fft_mmx.asm
@@ -36,6 +36,8 @@
%define pointer resd
%endif
+SECTION_RODATA
+
struc FFTContext
.nbits: resd 1
.reverse: resd 1
@@ -47,8 +49,6 @@ struc FFTContext
.tsin: pointer 1
endstruc
-SECTION_RODATA
-
%define M_SQRT1_2 0.70710678118654752440
%define M_COS_PI_1_8 0.923879532511287
%define M_COS_PI_3_8 0.38268343236509