ffmpeg | branch: master | Paul B Mahol <[email protected]> | Tue Sep 7 15:54:15 2021 +0200| [5d92b73c6417c87bfd12874dbfbb359b8bfda470] | committer: Paul B Mahol
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' > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5d92b73c6417c87bfd12874dbfbb359b8bfda470 --- libavcodec/mlpdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
