diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-08-19 16:05:31 -0700 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-08-21 14:20:33 +0100 |
commit | f8ef91ff3d6bb83d601d816ef9368f911021c64b (patch) | |
tree | b90e3b846ec3bea6741c52bcd168f159399a8e5f /libavformat/movenc.h | |
parent | 4622f11f9c83db8a2e08408c71ff901826ca652c (diff) | |
download | ffmpeg-f8ef91ff3d6bb83d601d816ef9368f911021c64b.tar.gz |
movenc: add faststart option for web streaming
Faststart moves the moov atom to the beginning of the file and rewrites
the rest of the file after muxing is complete.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r-- | libavformat/movenc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h index d15d69ccaa..a6282e14c7 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -156,6 +156,8 @@ typedef struct MOVMuxContext { int max_fragment_size; int ism_lookahead; AVIOContext *mdat_buf; + + int64_t reserved_moov_pos; } MOVMuxContext; #define FF_MOV_FLAG_RTP_HINT 1 @@ -165,6 +167,7 @@ typedef struct MOVMuxContext { #define FF_MOV_FLAG_SEPARATE_MOOF 16 #define FF_MOV_FLAG_FRAG_CUSTOM 32 #define FF_MOV_FLAG_ISML 64 +#define FF_MOV_FLAG_FASTSTART 128 int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt); |