Browse Source

lavfi/vf_thumbnail_cuda: fix operator precedence bug

Discovered via a warning when building with clang

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
tags/n4.2
Rodger Combs Timo Rothenpieler 5 years ago
parent
commit
6a5ed71d36
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_thumbnail_cuda.cu

+ 1
- 1
libavfilter/vf_thumbnail_cuda.cu View File

@@ -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…
Cancel
Save