From 573b1de2d7f1db71030f91ecdded7d0bc071f6b6 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 29 Oct 2014 09:20:51 +0200 Subject: movenc: Don't use track_id to decide which track is the first in a moof MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavformat/movenc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/movenc.h') 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; -- cgit v1.2.3