summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-10-29 09:20:51 +0200
committerMartin Storsjö <martin@martin.st>2014-10-29 23:01:27 +0200
commit573b1de2d7f1db71030f91ecdded7d0bc071f6b6 (patch)
tree53cbc0dfbf1db77af4b17139d06bc0d7932aeca7 /libavformat/movenc.h
parent84bf64d3598c98a748e609195358ea04b0cfd140 (diff)
movenc: Don't use track_id to decide which track is the first in a moof
If one track doesn't have any samples within a moof, no traf/trun is written for it. When the omit_tfhd_offset flag is set, none of the tfhd atoms have any base_data_offset set, and the implicit offset (end of previous track fragment data, or start of the moof for the first trun) is used. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r--libavformat/movenc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index 2f2c09cbd0..a463a8d527 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -158,6 +158,7 @@ typedef struct MOVMuxContext {
int max_fragment_size;
int ism_lookahead;
AVIOContext *mdat_buf;
+ int first_trun;
int64_t reserved_moov_pos;