mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 11:18:32 +00:00
packet: cosmetics: reorder fields
This commit is contained in:
parent
f2b039da77
commit
65f9af1d40
@ -25,15 +25,19 @@
|
|||||||
// Holds one packet/frame/whatever
|
// Holds one packet/frame/whatever
|
||||||
typedef struct demux_packet {
|
typedef struct demux_packet {
|
||||||
int len;
|
int len;
|
||||||
|
unsigned char *buffer;
|
||||||
|
|
||||||
double pts;
|
double pts;
|
||||||
double dts;
|
double dts;
|
||||||
double duration;
|
double duration;
|
||||||
int64_t pos; // position in source file byte stream
|
|
||||||
unsigned char *buffer;
|
|
||||||
bool keyframe;
|
bool keyframe;
|
||||||
int stream; // source stream index
|
|
||||||
|
int64_t pos; // position in source file byte stream
|
||||||
|
int stream; // source stream index
|
||||||
|
|
||||||
|
// private
|
||||||
struct demux_packet *next;
|
struct demux_packet *next;
|
||||||
struct AVPacket *avpacket; // keep the buffer allocation
|
struct AVPacket *avpacket; // keep the buffer allocation and sidedata
|
||||||
} demux_packet_t;
|
} demux_packet_t;
|
||||||
|
|
||||||
struct demux_packet *new_demux_packet(size_t len);
|
struct demux_packet *new_demux_packet(size_t len);
|
||||||
|
Loading…
Reference in New Issue
Block a user