mirror of https://github.com/mpv-player/mpv
packet: reorder fields
Saves 8 bytes on 64 bit platforms.
This commit is contained in:
parent
075111c4d2
commit
d7c7f80cc1
|
@ -24,17 +24,18 @@
|
||||||
|
|
||||||
// Holds one packet/frame/whatever
|
// Holds one packet/frame/whatever
|
||||||
typedef struct demux_packet {
|
typedef struct demux_packet {
|
||||||
int len;
|
|
||||||
unsigned char *buffer;
|
|
||||||
|
|
||||||
double pts;
|
double pts;
|
||||||
double dts;
|
double dts;
|
||||||
double duration;
|
double duration;
|
||||||
bool keyframe;
|
|
||||||
|
|
||||||
int64_t pos; // position in source file byte stream
|
int64_t pos; // position in source file byte stream
|
||||||
|
|
||||||
|
unsigned char *buffer;
|
||||||
|
int len;
|
||||||
|
|
||||||
int stream; // source stream index (typically sh_stream.index)
|
int stream; // source stream index (typically sh_stream.index)
|
||||||
|
|
||||||
|
bool keyframe;
|
||||||
|
|
||||||
// segmentation (ordered chapters, EDL)
|
// segmentation (ordered chapters, EDL)
|
||||||
bool segmented;
|
bool segmented;
|
||||||
struct mp_codec_params *codec; // set to non-NULL iff segmented is set
|
struct mp_codec_params *codec; // set to non-NULL iff segmented is set
|
||||||
|
|
Loading…
Reference in New Issue