diff options
author | Frank Plowman <post@frankplowman.com> | 2024-04-06 13:46:09 +0000 |
---|---|---|
committer | Nuo Mi <nuomi2021@gmail.com> | 2024-04-07 10:13:45 +0800 |
commit | 2d79ae3f8a3306d24afe43ba505693a8dbefd21b (patch) | |
tree | 534c9d937c2899c195c87a90ce43f5921adc472c /doc/scaler.texi | |
parent | 0dbf45120aa01959d4b979fae25a2a40d2a28828 (diff) | |
download | ffmpeg-2d79ae3f8a3306d24afe43ba505693a8dbefd21b.tar.gz |
lavc/vvc: Error if SPS ID is duplicated within CVS
Key line from the spec is:
"All SPS NAL units with a particular value of sps_seq_parameter_set_id
in a CVS shall have the same content."
Prior to this patch, the VVC decoder's behaviour on encountering a
duplicated SPS ID (within the entire bitstream, not restricted to
a CVS) was simply to replace the entry in the SPS lookup table with the
new data. Illegal bitstreams with multiple SPSs in the same CVS sharing
an ID but differing elsewhere could cause all manner of issues.
The patch tracks which SPS IDs have been used in the given CVS using the
new sps_id_used field of VVCParamSets. If it encounters an SPS with an
ID already in use and whose content differs from the previous SPS, it
throws an AVERROR_INVALIDDATA.
Signed-off-by: Frank Plowman <post@frankplowman.com>
Diffstat (limited to 'doc/scaler.texi')
0 files changed, 0 insertions, 0 deletions