aboutsummaryrefslogtreecommitdiff
path: root/src/dsp/convolve.cc
diff options
context:
space:
mode:
authorqinxialei <xialeiqin@gmail.com>2021-04-22 11:20:18 +0800
committerqinxialei <xialeiqin@gmail.com>2021-04-22 11:20:18 +0800
commit81ce37eb93e8ce442ecb1855a4e7166628128ac7 (patch)
tree2af6329f74f88ce090d08c61db5fb4bed8656584 /src/dsp/convolve.cc
parent4dab0c756a3cdd65b43470a4cca835422b32ca6e (diff)
parent2381d803c76105f44717d75f089ec37f51e5cfe4 (diff)
downloadlibgav1-81ce37eb93e8ce442ecb1855a4e7166628128ac7.tar.gz
libgav1-81ce37eb93e8ce442ecb1855a4e7166628128ac7.tar.bz2
libgav1-81ce37eb93e8ce442ecb1855a4e7166628128ac7.zip
Update upstream source from tag 'upstream/0.16.3'
Update to upstream version '0.16.3' with Debian dir a433e04a69210eb8fcdd6089240e161eb33f0590
Diffstat (limited to 'src/dsp/convolve.cc')
-rw-r--r--src/dsp/convolve.cc4
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);