mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavfi/vf_thumbnail_cuda: fix operator precedence bug
Discovered via a warning when building with clang Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
parent
b761ae072a
commit
a0c1970781
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user