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'
This commit is contained in:
Paul B Mahol 2021-09-07 15:54:15 +02:00
parent 5fe648d04a
commit 5d92b73c64
1 changed files with 1 additions and 1 deletions

View File

@ -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. */