diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-09-07 15:54:15 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-09-07 18:16:13 +0200 |
commit | 5d92b73c6417c87bfd12874dbfbb359b8bfda470 (patch) | |
tree | 38d613393e645fae047df0f5f0a1cbb35c5db7d4 | |
parent | 5fe648d04a2af3229704b26f114ba87158b9e9d2 (diff) | |
download | ffmpeg-5d92b73c6417c87bfd12874dbfbb359b8bfda470.tar.gz |
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'
-rw-r--r-- | libavcodec/mlpdec.c | 2 |
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. */ |