diff options
author | Chris Cunningham <chcunningham@chromium.org> | 2017-02-03 14:42:44 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-08 20:32:01 +0100 |
commit | a4fb905a14c1ab6d14bf38412e7fccbfed09a556 (patch) | |
tree | bf194521d68db766be7071820222ab41011a0f56 /libavcodec/gsm_parser.c | |
parent | ff7a4df8acc84810cf895ca5778d2948ab994631 (diff) | |
download | ffmpeg-a4fb905a14c1ab6d14bf38412e7fccbfed09a556.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/gsm_parser.c')
0 files changed, 0 insertions, 0 deletions