Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2018-09-24 16:16:04 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2018-09-24 19:10:07 +0300
commitd18bd0d7a090109af552db32e23a607b8b63e8b7 (patch)
tree89b55fa3931021240769bf668b406997bd37e0e0 /src
parent8a015fd0f546734f42e7ac8a1046bcef4a712964 (diff)
Fix stride in ac buffer from 32 to width in padding.
Fixes mismatch in issue #14.
Diffstat (limited to 'src')
-rw-r--r--src/ipred.c2
-rw-r--r--src/recon.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ipred.c b/src/ipred.c
index 1c50f45..aa74891 100644
--- a/src/ipred.c
+++ b/src/ipred.c
@@ -800,7 +800,7 @@ cfl_ac_c(int16_t *ac, const pixel *ypx, const ptrdiff_t stride,
ypx += PXSTRIDE(stride) << ss_ver;
}
for (; y < height; y++) {
- memcpy(ac, &ac[-32], width * sizeof(*ac));
+ memcpy(ac, &ac[-width], width * sizeof(*ac));
ac += width;
}
diff --git a/src/recon.c b/src/recon.c
index ed76258..c83cce5 100644
--- a/src/recon.c
+++ b/src/recon.c
@@ -884,6 +884,7 @@ void bytefn(recon_b_intra)(Dav1dTileContext *const t, const enum BlockSize bs,
b->cfl_alpha,
cbh4 * 4);
if (DEBUG_BLOCK_INFO && DEBUG_B_PIXELS) {
+ ac_dump(ac, 4*cbw4, 4*cbh4, "ac");
hex_dump(uv_dst[0], stride, cbw4 * 4, cbh4 * 4, "u-cfl-pred");
hex_dump(uv_dst[1], stride, cbw4 * 4, cbh4 * 4, "v-cfl-pred");
}