• Frank Plowman's avatar
    lavc/vvc: Validate temporal MVP references · 49c3918c
    Frank Plowman authored
    Per VVCv3 p. 157, the collocated reference picture used in temporal
    motion vector prediction must have RprConstraintsActiveFlag equal to
    zero and the same CTU size as the current picture.  Add these checks,
    fixing crashes decoding some fuzzed bitstreams.
    
    Additionally, only set up the collocated reference picture if it is
    actually going to be used (i.e. if ph_temporal_mvp_enabled_flag is 1),
    else legal RPR bitstreams will fail the new checks.
    Co-authored-by: 's avatarNuo Mi <nuomi2021@gmail.com>
    Signed-off-by: 's avatarFrank Plowman <post@frankplowman.com>
    49c3918c
refs.c 19.9 KB