Mercurial > mplayer.hg
changeset 15568:6825cbde2df6
Specify the padding instead of expecting the compiler to align correctly
author | reimar |
---|---|
date | Wed, 25 May 2005 11:48:58 +0000 |
parents | c8ef0513f470 |
children | dff7e79b194f |
files | libmpdemux/nuppelvideo.h |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/nuppelvideo.h Wed May 25 09:20:50 2005 +0000 +++ b/libmpdemux/nuppelvideo.h Wed May 25 11:48:58 2005 +0000 @@ -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 @@ 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)