aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorChris Cunningham <chcunningham@chromium.org>2017-02-03 14:42:44 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2017-02-06 11:00:24 +0100
commitd88493c02b4af3b6c02adb958485250ebd477633 (patch)
tree1799fa515e758ab53f76ae78667d7ed4d3a5629f /ffmpeg_opt.c
parent87a47c67a6973a76996a43e4112926cdb6d29f74 (diff)
downloadffmpeg-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 'ffmpeg_opt.c')
0 files changed, 0 insertions, 0 deletions