summaryrefslogtreecommitdiff
path: root/libavcodec/pthread.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/pthread.c
parent345bb2ad90f845e004ccef49dec8fa183576eeaa (diff)
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/pthread.c')
-rw-r--r--libavcodec/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 244bb520dd..702adb533d 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -42,7 +42,7 @@ typedef struct ThreadContext {
int done;
} ThreadContext;
-static void* worker(void *v)
+static void* attribute_align_arg worker(void *v)
{
AVCodecContext *avctx = v;
ThreadContext *c = avctx->thread_opaque;