• John Stebbins's avatar
    matroskaenc: factor ts_offset into block timecode computation · 5d3953a5
    John Stebbins authored
    ts_offset was added to cluster timecode, but then effectively subtracted
    back off the block timecode
    
    When setting initial_padding for an audio stream, the timestamps are
    written incorrectly to the mkv file.  cluster timecode gets written
    as pts0 + ts_offset which is correct, but then block timecode gets
    written as pts - cluster timecode which expanded is
    pts - (pts0 + ts_offset).  Adding cluster and block tc back together:
    cluster + block = (pts0 + ts_offset) + (pts - (pts0 + ts_offset)) = pts
    But the result should be pts + ts_offset since demux will subtract the
    CodecDelay element from pts and set initial_padding to CodecDelay.
    This patch gives the correct result.
    5d3953a5
Name
Last commit
Last update
avbuild Loading commit data...
avtools Loading commit data...
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...