Commit 1c8cdef5 authored by Rupert Swarbrick's avatar Rupert Swarbrick Committed by Debargha Mukherjee
Browse files

Fix argument to finer_search_pixel_proj_error

Patch, merged as
32d150b6, converted several functions in pickrst.c to take a
"use_highbitdepth" flag as well as (or instead of) the actual bit

Unfortunately, I missed a call site and the code can end up passing
the number 8 as the flag for use_highbitdepth (and, since 8 != 0, this
ends up using the high bit depth patch).


Change-Id: Ie4dbad92f57ea1bacc4d99aad15454d9e5b6ff47
parent 32d150b6
......@@ -394,8 +394,8 @@ static void search_selfguided_restoration(uint8_t *dat8, int width, int height,
encode_xq(exq, exqd);
err = finer_search_pixel_proj_error(src8, width, height, src_stride, dat8,
dat_stride, bit_depth, flt1, width,
flt2, width, 2, exqd);
dat_stride, use_highbitdepth, flt1,
width, flt2, width, 2, exqd);
if (besterr == -1 || err < besterr) {
bestep = ep;
besterr = err;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment