Commit a0c19707 authored by Rodger Combs's avatar Rodger Combs Committed by Timo Rothenpieler

lavfi/vf_thumbnail_cuda: fix operator precedence bug

Discovered via a warning when building with clang
Signed-off-by: 's avatarTimo Rothenpieler <timo@rothenpieler.org>
parent b761ae07
......@@ -71,7 +71,7 @@ __global__ void Thumbnail_ushort2(cudaTextureObject_t ushort2_tex,
{
ushort2 pixel = tex2D<ushort2>(ushort2_tex, x, y);
atomicAdd(&histogram[(pixel.x + 128) >> 8], 1);
atomicAdd(&histogram[256 + (pixel.y + 128) >> 8], 1);
atomicAdd(&histogram[256 + ((pixel.y + 128) >> 8)], 1);
}
}
......
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