diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2019-07-30 02:51:43 -0500 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2019-07-30 15:18:31 +0200 |
commit | 6a5ed71d36f700219f6f8cc69d767343f2fb8cb7 (patch) | |
tree | 835c107770be21fcb6f7e2c99e2b361c4b37e6ef | |
parent | 1df4a99e892f65e3d1554a343b946313d7fee18c (diff) | |
download | ffmpeg-6a5ed71d36f700219f6f8cc69d767343f2fb8cb7.tar.gz |
lavfi/vf_thumbnail_cuda: fix operator precedence bug
Discovered via a warning when building with clang
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
-rw-r--r-- | libavfilter/vf_thumbnail_cuda.cu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_thumbnail_cuda.cu b/libavfilter/vf_thumbnail_cuda.cu index c73e49fbc6..d4d4d791f6 100644 --- a/libavfilter/vf_thumbnail_cuda.cu +++ b/libavfilter/vf_thumbnail_cuda.cu @@ -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); } } |