summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-06 16:15:35 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-06 16:15:35 +0100
commitcf8ec019ab21f8c6e56c2e10cc569e3fb4cf097f (patch)
tree9e7ee49b3d609cfc214b9d372d3724ee0bb03546 /libavformat/movenc.h
parentc89488588b740e7ff6fb7cc7344e9501e6baba01 (diff)
movenc: fragment support
Reviewed-by: Baptiste Coudurier Tested-with-QT: Baptiste Coudurier Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r--libavformat/movenc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index a5b6db9286..95b8bcd176 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -50,6 +50,7 @@ typedef struct MOVIentry {
#define MOV_SYNC_SAMPLE 0x0001
#define MOV_PARTIAL_SYNC_SAMPLE 0x0002
uint32_t flags;
+ uint8_t *data;
} MOVIentry;
typedef struct HintSample {
@@ -86,6 +87,7 @@ typedef struct MOVIndex {
int vosLen;
uint8_t *vosData;
+ int cluster_write_index;
MOVIentry *cluster;
int audio_vbr;
int height; ///< active picture (w/o VBI) height for D-10/IMX
@@ -98,6 +100,7 @@ typedef struct MOVIndex {
uint32_t prev_rtp_ts;
int64_t cur_rtp_ts_unwrapped;
uint32_t max_packet_size;
+ int64_t base_data_offset_pos;
HintSampleQueue sample_queue;
} MOVTrack;
@@ -111,11 +114,14 @@ typedef struct MOVMuxContext {
int64_t mdat_pos;
uint64_t mdat_size;
MOVTrack *tracks;
+ int fragments;
+ int frag_seq_num;
int flags;
int rtp_flags;
int reserved_moov_size;
int64_t reserved_moov_pos;
+ int max_fragment_duration;
} MOVMuxContext;
#define FF_MOV_FLAG_RTP_HINT 1