Skip to content
Snippets Groups Projects
Commit 260e67f8 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix lossy float decode filter bug

parent 1ac65d73
No related branches found
No related tags found
No related merge requests found
Pipeline #29450 passed
......@@ -172,7 +172,7 @@ __device__ inline float2 readChroma(const T* __restrict__ chroma, int pitch, uin
template <typename T>
__device__ inline float2 bilinChroma(const T* __restrict__ chroma, int pitch, uint x, uint y, const float2 &D, int dx, int dy, int width, int height) {
if (uint(x+dx) >= width || uint(y+dy) >= height/2) return D;
if (uint(x+dx) >= width || uint(y+dy) >= height) return D;
float2 A = readChroma(chroma, pitch, x+dx, y+dy);
float2 B = readChroma(chroma, pitch, x, y+dy);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment