X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavfilter%2Fvf_thumbnail_cuda.cu;h=d4d4d791f6819eb7743c69e22529b14e3cccb90b;hb=911ba8417e8881a7380842e69e11ca05fdc46575;hp=c73e49fbc69043c5a6e19ae3d6f834d48c9f33bc;hpb=398000abcf980d239a789da6f69811913d2fc635;p=ffmpeg diff --git a/libavfilter/vf_thumbnail_cuda.cu b/libavfilter/vf_thumbnail_cuda.cu index c73e49fbc69..d4d4d791f68 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_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); } }