summaryrefslogtreecommitdiff
path: root/libavcodec/w32thread.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-08-13 15:28:29 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-08-13 15:28:29 +0000
commit5e4c7ca224417902dd714f4f50500b36b8c89148 (patch)
treec9fdb0713c75ea36467a645f9cafc67549e1b754 /libavcodec/w32thread.c
parent345bb2ad90f845e004ccef49dec8fa183576eeaa (diff)
downloadffmpeg-5e4c7ca224417902dd714f4f50500b36b8c89148.tar.gz
Add attribute that forces alignment of stack to functions that need it.
Necessary for systems that don't align by default to 16 bytes, required by some SSE instructions. Requires GCC >= 4.2. Based on patch by Gaƫl Chardon. Originally committed as revision 10106 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/w32thread.c')
-rw-r--r--libavcodec/w32thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/w32thread.c b/libavcodec/w32thread.c
index 12c9212945..fbc0a581e2 100644
--- a/libavcodec/w32thread.c
+++ b/libavcodec/w32thread.c
@@ -36,7 +36,7 @@ typedef struct ThreadContext{
}ThreadContext;
-static unsigned __stdcall thread_func(void *v){
+static unsigned __stdcall attribute_align_arg thread_func(void *v){
ThreadContext *c= v;
for(;;){