summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-15 20:39:17 +0100
committerwm4 <wm4@nowhere>2016-02-15 20:39:17 +0100
commit65f9af1d406de4625b79c369bc642c0ff6739673 (patch)
treed4f8c59a89ad77f7b2484a745d97e041340cfbc2
parentf2b039da77fc66119d556e575822c2b8d328cdaf (diff)
downloadmpv-65f9af1d406de4625b79c369bc642c0ff6739673.tar.bz2
mpv-65f9af1d406de4625b79c369bc642c0ff6739673.tar.xz
packet: cosmetics: reorder fields
-rw-r--r--demux/packet.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/demux/packet.h b/demux/packet.h
index 784a1de405..82dad6f90f 100644
--- a/demux/packet.h
+++ b/demux/packet.h
@@ -25,15 +25,19 @@
// Holds one packet/frame/whatever
typedef struct demux_packet {
int len;
+ unsigned char *buffer;
+
double pts;
double dts;
double duration;
- int64_t pos; // position in source file byte stream
- unsigned char *buffer;
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 AVPacket *avpacket; // keep the buffer allocation
+ struct AVPacket *avpacket; // keep the buffer allocation and sidedata
} demux_packet_t;
struct demux_packet *new_demux_packet(size_t len);