summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/pictordec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c
index 8b075bfd0c..b29a484534 100644
--- a/libavcodec/pictordec.c
+++ b/libavcodec/pictordec.c
@@ -62,7 +62,7 @@ static void picmemset(PicContext *s, AVFrame *frame, unsigned value, int run,
{
uint8_t *d;
int shift = *plane * bits_per_plane;
- unsigned mask = ((1 << bits_per_plane) - 1) << shift;
+ unsigned mask = ((1U << bits_per_plane) - 1) << shift;
value <<= shift;
while (run > 0) {