Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2019-07-30 10:51:43 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2019-07-30 16:17:22 +0300
commita0c19707811cb5b4e6df089317dda65dd6a0240b (patch)
tree5ba70e49eae2acd910649eba7a6921b0fd4f3b08 /libavfilter/vf_thumbnail_cuda.cu
parentb761ae072a169eb183abe0785a258b9787e267d3 (diff)
lavfi/vf_thumbnail_cuda: fix operator precedence bug
Discovered via a warning when building with clang Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavfilter/vf_thumbnail_cuda.cu')
-rw-r--r--libavfilter/vf_thumbnail_cuda.cu2
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);
}
}