diff options
author | Martin Storsjö <martin@martin.st> | 2014-11-04 16:28:48 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-11-07 12:11:46 +0200 |
commit | 1d8a0c1b43e58332a3a15c67d4adc161713cade8 (patch) | |
tree | 0ae9f768a10ecf7f8fdd1b1ebc891fe845cb2115 /libavformat/movenc.h | |
parent | 897d5c3a4296f3da80b8699d1487328ca2de8e55 (diff) | |
download | ffmpeg-1d8a0c1b43e58332a3a15c67d4adc161713cade8.tar.gz |
movenc: Allow to request not to use edit lists
In this case, shift tracks to start from zero instead (potentially
stretching the first sample in tracks that start later than the
first one).
Some software does not support edit lists at all, the adobe flash
player seems to be one of these. This results in AV sync errors when
edit lists are used to adjust AV sync.
Some players, such as QuickTime, don't respect the duration for
audio packets, so if an audio track starts later than the video
track and the first audio sample gets a duration longer than the
actual amount of data in it, the result will be out of sync.
Based on patches by Michael Niedermayer.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r-- | libavformat/movenc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h index e9056275ef..8349a18c1d 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -166,6 +166,8 @@ typedef struct MOVMuxContext { int per_stream_grouping; AVFormatContext *fc; + + int use_editlist; } MOVMuxContext; #define FF_MOV_FLAG_RTP_HINT (1 << 0) |