]> git.sesse.net Git - ffmpeg/commit
movenc: Allow to request not to use edit lists
authorMartin Storsjö <martin@martin.st>
Tue, 4 Nov 2014 14:28:48 +0000 (16:28 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 7 Nov 2014 10:11:46 +0000 (12:11 +0200)
commit1d8a0c1b43e58332a3a15c67d4adc161713cade8
tree0ae9f768a10ecf7f8fdd1b1ebc891fe845cb2115
parent897d5c3a4296f3da80b8699d1487328ca2de8e55
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>
libavformat/movenc.c
libavformat/movenc.h