summaryrefslogtreecommitdiff
path: root/libavcodec/mlpdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-09-07 15:54:15 +0200
committerPaul B Mahol <onemda@gmail.com>2021-09-07 18:16:13 +0200
commit5d92b73c6417c87bfd12874dbfbb359b8bfda470 (patch)
tree38d613393e645fae047df0f5f0a1cbb35c5db7d4 /libavcodec/mlpdec.c
parent5fe648d04a2af3229704b26f114ba87158b9e9d2 (diff)
avcodec/mlpdec: fix integer sanitizer warning under clang
Fixes: libavcodec/mlpdec.c:1108:37: runtime error: negation of 1 cannot be represented in type 'unsigned int'
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r--libavcodec/mlpdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index 4320cb4524..fef92c5a31 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -922,7 +922,7 @@ fail:
return ret;
}
-#define MSB_MASK(bits) (-1u << (bits))
+#define MSB_MASK(bits) (-(1 << (bits)))
/** Generate PCM samples using the prediction filters and residual values
* read from the data stream, and update the filter state. */