FFmpeg/libavcodec/vvc
Frank Plowman d72a5fe719 lavc/vvc: Prevent overflow in chroma QP derivation
On the top of p. 112 in VVC (09/2023):

It is a requirement of bitstream conformance that the values of
qpInVal[ i ][ j ] and qpOutVal[ i ][ j ] shall be in the range
of −QpBdOffset to 63, inclusive for i in the range of 0 to
numQpTables − 1, inclusive, and j in the range of 0 to
sps_num_points_in_qp_table_minus1[ i ] + 1, inclusive.

Additionally, don't discard the return code from sps_chroma_qp_table.

Signed-off-by: Frank Plowman <post@frankplowman.com>
2024-06-12 20:48:08 +08:00
..
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 avcodec/vvc/inter: Don't return void 2024-06-11 02:43:14 +02:00
inter.h
inter_template.c
intra.c
intra.h
intra_template.c
intra_utils.c
itx_1d.c
itx_1d.h
Makefile
mvs.c
mvs.h
ps.c lavc/vvc: Prevent overflow in chroma QP derivation 2024-06-12 20:48:08 +08:00
ps.h
refs.c
refs.h
thread.c
thread.h