aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/x86
diff options
context:
space:
mode:
authorJohn Stebbins <stebbins@jetheaddev.com>2017-02-15 15:22:40 -0700
committerJohn Stebbins <stebbins@jetheaddev.com>2017-02-21 14:20:31 -0700
commit5d3953a5dcfd5f71391b7f34908517eb6f7e5146 (patch)
treedab2c3f481d71c3a298819ab6552f2e932cd9b83 /libavfilter/x86
parentc95169f0ec68bdeeabc5fde8aa4076f406242524 (diff)
downloadffmpeg-5d3953a5dcfd5f71391b7f34908517eb6f7e5146.tar.gz
matroskaenc: factor ts_offset into block timecode computation
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.
Diffstat (limited to 'libavfilter/x86')
0 files changed, 0 insertions, 0 deletions