summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-05-18 19:48:25 +0000
committerMartin Storsjö <martin@martin.st>2010-05-18 19:48:25 +0000
commit44bf251a42ac6dd416b0454d168d426dd55e714b (patch)
tree3d9dee472adb9686cdc5fbac12129107419149e0 /libavformat/movenc.h
parente977af6f2ea3752c8e0db04fe9a478f725cd3ebf (diff)
Use a heuristic for describing the RTP packets using sample data
Originally committed as revision 23165 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r--libavformat/movenc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index 3d8f4ba499..182c5edc8c 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -51,6 +51,20 @@ typedef struct MOVIentry {
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 @@ typedef struct MOVIndex {
uint32_t prev_rtp_ts;
int64_t cur_rtp_ts_unwrapped;
uint32_t max_packet_size;
+
+ HintSampleQueue sample_queue;
} MOVTrack;
typedef struct MOVMuxContext {