Mercurial > mplayer.hg
view loader/wine/pshpack1.h @ 30327:028ec0735169
swscale-example: use av_malloc()
Image buffers require 16-byte alignment, so av_malloc() should be used.
Fixes crash on PPC.
author | mru |
---|---|
date | Tue, 19 Jan 2010 03:47:11 +0000 |
parents | a8ea87c71d18 |
children | 32725ca88fed |
line wrap: on
line source
#ifndef MPLAYER_PSHPACK_H #define MPLAYER_PSHPACK_H 1 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) //#pragma pack(1) #elif !defined(RC_INVOKED) #error "1 as alignment isn't supported by the compiler" #endif /* defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) ; !defined(RC_INVOKED) */ #else /* MPLAYER_PSHPACK_H */ #error "Nested pushing of alignment isn't supported by the compiler" #endif /* MPLAYER_PSHPACK_H */