diff options
author | qinxialei <xialeiqin@gmail.com> | 2021-04-22 11:20:15 +0800 |
---|---|---|
committer | qinxialei <xialeiqin@gmail.com> | 2021-04-22 11:20:15 +0800 |
commit | 2381d803c76105f44717d75f089ec37f51e5cfe4 (patch) | |
tree | 33f40fb4dfd1039ac262d5f1c1065d298578ddc1 /src/dsp/convolve.cc | |
parent | e8d277081293b6fb2a5d469616baaa7a06f52496 (diff) | |
download | libgav1-2381d803c76105f44717d75f089ec37f51e5cfe4.tar.gz libgav1-2381d803c76105f44717d75f089ec37f51e5cfe4.tar.bz2 libgav1-2381d803c76105f44717d75f089ec37f51e5cfe4.zip |
New upstream version 0.16.3
Diffstat (limited to 'src/dsp/convolve.cc')
-rw-r--r-- | src/dsp/convolve.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dsp/convolve.cc b/src/dsp/convolve.cc index 8c6f68f..727b4af 100644 --- a/src/dsp/convolve.cc +++ b/src/dsp/convolve.cc @@ -623,6 +623,8 @@ void ConvolveIntraBlockCopy2D_C(const void* const reference, const int /*vertical_filter_id*/, const int width, const int height, void* prediction, const ptrdiff_t pred_stride) { + assert(width >= 4 && width <= kMaxSuperBlockSizeInPixels); + assert(height >= 4 && height <= kMaxSuperBlockSizeInPixels); const auto* src = static_cast<const Pixel*>(reference); const ptrdiff_t src_stride = reference_stride / sizeof(Pixel); auto* dest = static_cast<Pixel*>(prediction); @@ -676,6 +678,8 @@ void ConvolveIntraBlockCopy1D_C(const void* const reference, const int /*vertical_filter_id*/, const int width, const int height, void* prediction, const ptrdiff_t pred_stride) { + assert(width >= 4 && width <= kMaxSuperBlockSizeInPixels); + assert(height >= 4 && height <= kMaxSuperBlockSizeInPixels); const auto* src = static_cast<const Pixel*>(reference); const ptrdiff_t src_stride = reference_stride / sizeof(Pixel); auto* dest = static_cast<Pixel*>(prediction); |