mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 11:47:45 +00:00
packet: reorder fields
Saves 8 bytes on 64 bit platforms.
This commit is contained in:
parent
829308da08
commit
c0a1b8d723
@ -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
Block a user