diff options
author | Chris Cunningham <chcunningham@chromium.org> | 2017-02-03 14:42:44 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-06 11:00:24 +0100 |
commit | d88493c02b4af3b6c02adb958485250ebd477633 (patch) | |
tree | 1799fa515e758ab53f76ae78667d7ed4d3a5629f /libavformat/librtmp.c | |
parent | 87a47c67a6973a76996a43e4112926cdb6d29f74 (diff) | |
download | ffmpeg-d88493c02b4af3b6c02adb958485250ebd477633.tar.gz |
lavf/matroskadec: fix is_keyframe for early Blocks
Blocks are marked as key frames whenever the "reference" field is
zero. This breaks for non-keyframe Blocks with a reference timestamp
of zero.
The likelihood of reference timestamp being zero is increased by a
longstanding bug in muxing that encodes reference timestamp as the
absolute time of the referenced frame (rather than relative to the
current Block timestamp, as described in MKV spec).
Now using INT64_MIN to denote "no reference".
Reported to chromium at http://crbug.com/497889 (contains sample)
(cherry picked from commit ac25840ee32888f0c13118edeb9404a123cd3a79)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/librtmp.c')
0 files changed, 0 insertions, 0 deletions