]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_thumbnail_cuda.cu
avfilter: Remove deprecated resample_lavr_opts
[ffmpeg] / libavfilter / vf_thumbnail_cuda.cu
index c73e49fbc69043c5a6e19ae3d6f834d48c9f33bc..d4d4d791f6819eb7743c69e22529b14e3cccb90b 100644 (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);
     }
 }