diff options
author | wm4 <wm4@nowhere> | 2013-06-01 19:54:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-03 22:40:06 +0200 |
commit | 6dbedd27d53b61744d512e27bb0c3853cf6d7bba (patch) | |
tree | 338f2c5ff1f900f6593b6bc1e15b2fd48efac2e8 /demux/mf.h | |
parent | b11bd1fe5e82fb7cd9aa912c2b1c98de8704bb87 (diff) | |
download | mpv-6dbedd27d53b61744d512e27bb0c3853cf6d7bba.tar.bz2 mpv-6dbedd27d53b61744d512e27bb0c3853cf6d7bba.tar.xz |
demux_lavf: always set packet duration
Makes WebVTT actually work.
Also simplify the logic for setting duration. Only the subtitle path
uses the packet duration, so the checks for STREAM_SUB as well as the
keyframe flag are redundant.
Apparently duration and convergence_duration are the same thing, but
convergence_duration was added as Matroska-specific hack to get a higher
value range (int vs. int64_t) with high resolution Matroska timebases.
For us it doesn't matter, because double floats are used for timestamps
and durations.
Diffstat (limited to 'demux/mf.h')
0 files changed, 0 insertions, 0 deletions