• Chris Cunningham's avatar
    lavf/matroskadec: fix is_keyframe for early Blocks · a4fb905a
    Chris Cunningham authored
    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 ac25840e
    
    )
    Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
    a4fb905a