mirror of
https://code.videolan.org/videolan/dav1d
synced 2026-06-11 04:03:05 +00:00
Skip loop restoration cache buffer resize for too-small buffers
Fixes crashes in dav1d_resize_{avx2,ssse3} on very small resolutions
with super_res enabled but skipped because the width is too small.
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ static void backup_lpf(const Dav1dFrameContext *const f,
|
||||
dst += 4 * PXSTRIDE(dst_stride);
|
||||
src += (stripe_h - 2) * PXSTRIDE(src_stride);
|
||||
|
||||
if (f->frame_hdr->super_res.enabled) {
|
||||
if (f->frame_hdr->width[0] != f->frame_hdr->width[1]) {
|
||||
while (row + stripe_h <= row_h) {
|
||||
const int n_lines = 4 - (row + stripe_h + 1 == h);
|
||||
f->dsp->mc.resize(dst, dst_stride, src, src_stride,
|
||||
|
||||
Reference in New Issue
Block a user