summaryrefslogtreecommitdiffstats
path: root/demux/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'demux/packet.h')
-rw-r--r--demux/packet.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/demux/packet.h b/demux/packet.h
index 7c5b04720f..a5df6ce121 100644
--- a/demux/packet.h
+++ b/demux/packet.h
@@ -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