packet: reorder fields

Saves 8 bytes on 64 bit platforms.
This commit is contained in:
wm4 2019-05-16 16:20:45 +02:00
parent 075111c4d2
commit d7c7f80cc1
1 changed files with 6 additions and 5 deletions

View File

@ -24,17 +24,18 @@
// Holds one packet/frame/whatever
typedef struct demux_packet {
int len;
unsigned char *buffer;
double pts;
double dts;
double duration;
bool keyframe;
int64_t pos; // position in source file byte stream
unsigned char *buffer;
int len;
int stream; // source stream index (typically sh_stream.index)
bool keyframe;
// segmentation (ordered chapters, EDL)
bool segmented;
struct mp_codec_params *codec; // set to non-NULL iff segmented is set