diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-08-13 15:28:29 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-08-13 15:28:29 +0000 |
commit | 5e4c7ca224417902dd714f4f50500b36b8c89148 (patch) | |
tree | c9fdb0713c75ea36467a645f9cafc67549e1b754 /libavcodec/pthread.c | |
parent | 345bb2ad90f845e004ccef49dec8fa183576eeaa (diff) | |
download | ffmpeg-streaming-5e4c7ca224417902dd714f4f50500b36b8c89148.zip ffmpeg-streaming-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/pthread.c')
-rw-r--r-- | libavcodec/pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index 244bb52..702adb5 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; |