diff options
author | Boyuan Yang <byang@debian.org> | 2023-11-27 22:46:32 -0500 |
---|---|---|
committer | Boyuan Yang <byang@debian.org> | 2023-11-27 22:46:32 -0500 |
commit | 7fee0fd1b17b4f963fa1db74c3a5fcc3ff142e0d (patch) | |
tree | 4ed468528001d8e80e3be09413ae927ca2ac05ce /src/tile/bitstream/mode_info.cc | |
parent | 0d1e75e423265689dd49c7d6023d8bba70ca4d05 (diff) | |
parent | 19564cb4f77660cdb2f980ca619d4b979b9fe342 (diff) | |
download | libgav1-7fee0fd1b17b4f963fa1db74c3a5fcc3ff142e0d.tar.gz libgav1-7fee0fd1b17b4f963fa1db74c3a5fcc3ff142e0d.tar.bz2 libgav1-7fee0fd1b17b4f963fa1db74c3a5fcc3ff142e0d.zip |
Update upstream source from tag 'upstream/0.19.0'
Update to upstream version '0.19.0'
with Debian dir a4233a4a247b06e8d6e36d07d059f03582d97721
Diffstat (limited to 'src/tile/bitstream/mode_info.cc')
-rw-r--r-- | src/tile/bitstream/mode_info.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tile/bitstream/mode_info.cc b/src/tile/bitstream/mode_info.cc index cb7b311..ffbbf64 100644 --- a/src/tile/bitstream/mode_info.cc +++ b/src/tile/bitstream/mode_info.cc @@ -890,6 +890,14 @@ uint16_t* Tile::GetReferenceCdf( block, kReferenceFrameBackward, kReferenceFrameBackward, kReferenceFrameAlternate2, kReferenceFrameAlternate2); } + // When using GCC 12.x for some targets the compiler reports a false positive + // with the context subscript when is_single=false, is_backward=false and + // index=0. GetReferenceContext() can only return values between 0 and 2. +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Warray-bounds" +#endif + assert(context >= 0 && context <= 2); if (is_single) { // The index parameter for single references is offset by one since the spec // uses 1-based index for these elements. @@ -900,6 +908,9 @@ uint16_t* Tile::GetReferenceCdf( .compound_backward_reference_cdf[context][index]; } return symbol_decoder_context_.compound_reference_cdf[type][context][index]; +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif } void Tile::ReadReferenceFrames(const Block& block, bool skip_mode) { |