From 499e8b0952b2888e2defda7a2c9914dcdf1cfa8d Mon Sep 17 00:00:00 2001 From: Erkki Seppälä Date: Wed, 31 Aug 2016 14:35:44 +0300 Subject: avformat/movenc: added ability to use original stream ids as track ids instead of regenerating them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes it's useful to be able to define the exact track numbers in the generated track, instead of always beginning at track id 1. Using the option use_stream_ids_as_track_ids now copies the use stream ids to track ids. Dynamically generated tracks (ie. tmcd) have their track numbers defined as continuing from the highest numbered stream id. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer Signed-off-by: Michael Niedermayer --- libavformat/movenc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/movenc.h') diff --git a/libavformat/movenc.h b/libavformat/movenc.h index 894a1b0bcf..ea76e39f23 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -217,6 +217,8 @@ typedef struct MOVMuxContext { int need_rewrite_extradata; + int use_stream_ids_as_track_ids; + int track_ids_ok; } MOVMuxContext; #define FF_MOV_FLAG_RTP_HINT (1 << 0) -- cgit v1.2.3