Specify the padding instead of expecting the compiler to align correctly

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15569 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-05-25 11:48:58 +00:00
parent 8d6814a3da
commit 3c9ef55e0a
1 changed files with 4 additions and 2 deletions

View File

@ -1,15 +1,17 @@
/* nuppelvideo.h rh */
typedef struct rtfileheader
typedef struct __attribute__((packed)) rtfileheader
{
char finfo[12]; // "NuppelVideo" + \0
char version[5]; // "0.05" + \0
char pad1[3];
int width;
int height;
int desiredwidth; // 0 .. as it is
int desiredheight; // 0 .. as it is
char pimode; // P .. progressive
// I .. interlaced (2 half pics) [NI]
char pad2[3];
double aspect; // 1.0 .. square pixel (1.5 .. e.g. width=480: width*1.5=720
// for capturing for svcd material
double fps;
@ -19,7 +21,7 @@ typedef struct rtfileheader
int keyframedist;
} rtfileheader;
typedef struct rtframeheader
typedef struct __attribute__((packed)) rtframeheader
{
char frametype; // A .. Audio, V .. Video, S .. Sync, T .. Text
// R .. Seekpoint: String RTjjjjjjjj (use full packet)