diff movenc.h @ 6014:b66058698117 libavformat

Use a heuristic for describing the RTP packets using sample data
author mstorsjo
date Tue, 18 May 2010 19:48:25 +0000
parents 332ad5f30c0e
children
line wrap: on
line diff
--- a/movenc.h	Tue May 18 19:47:24 2010 +0000
+++ b/movenc.h	Tue May 18 19:48:25 2010 +0000
@@ -51,6 +51,20 @@
     uint32_t     flags;
 } MOVIentry;
 
+typedef struct HintSample {
+    uint8_t *data;
+    int size;
+    int sample_number;
+    int offset;
+    int own_data;
+} HintSample;
+
+typedef struct {
+    int size;
+    int len;
+    HintSample *samples;
+} HintSampleQueue;
+
 typedef struct MOVIndex {
     int         mode;
     int         entry;
@@ -82,6 +96,8 @@
     uint32_t    prev_rtp_ts;
     int64_t     cur_rtp_ts_unwrapped;
     uint32_t    max_packet_size;
+
+    HintSampleQueue sample_queue;
 } MOVTrack;
 
 typedef struct MOVMuxContext {