ffmpeg/libavcodec/vvc
Frank Plowman 49c3918c1a lavc/vvc: Validate temporal MVP references
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: Nuo Mi <nuomi2021@gmail.com>
Signed-off-by: Frank Plowman <post@frankplowman.com>
2024-05-27 20:24:21 +08:00
..
Makefile
cabac.c
cabac.h
ctu.c
ctu.h
data.c
data.h
dec.c
dec.h
dsp.c
dsp.h
dsp_template.c
filter.c
filter.h
filter_template.c
inter.c
inter.h
inter_template.c
intra.c
intra.h
intra_template.c
intra_utils.c
itx_1d.c
itx_1d.h
mvs.c
mvs.h
ps.c
ps.h
refs.c lavc/vvc: Validate temporal MVP references 2024-05-27 20:24:21 +08:00
refs.h
thread.c
thread.h