diff options
author | Chris Cunningham <chcunningham@chromium.org> | 2017-02-03 14:42:44 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-08-23 13:15:16 +0200 |
commit | ef1da0bd533ba10741ef75661ce2c786842b64a3 (patch) | |
tree | 369c86054a4ec20974b5bd53f18255aed12e3ccd /libavcodec/svq13.c | |
parent | f0439a39590d657bdc59151a4e1f8fb700a8cf29 (diff) | |
download | ffmpeg-ef1da0bd533ba10741ef75661ce2c786842b64a3.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 'libavcodec/svq13.c')
0 files changed, 0 insertions, 0 deletions