summaryrefslogtreecommitdiffstats
path: root/video/out/bitmap_packer.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/bitmap_packer.c')
-rw-r--r--video/out/bitmap_packer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/bitmap_packer.c b/video/out/bitmap_packer.c
index 78af8e648c..747693b089 100644
--- a/video/out/bitmap_packer.c
+++ b/video/out/bitmap_packer.c
@@ -57,7 +57,7 @@ static int size_index(int s)
{
int n = av_log2_16bit(s);
return (n << HEIGHT_SORT_BITS)
- + (- 1 - (s << HEIGHT_SORT_BITS >> n) & (1 << HEIGHT_SORT_BITS) - 1);
+ + ((- 1 - (s << HEIGHT_SORT_BITS >> n)) & ((1 << HEIGHT_SORT_BITS) - 1));
}
/* Pack the given rectangles into an area of size w * h.