• Chris Cunningham's avatar
    lavf/matroskadec: fix is_keyframe for early Blocks · ac25840e
    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)
    ac25840e
matroskadec.c 143 KB