Commit 2c881c7d authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/avstring: Fix undefined shift

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fdbad240
...@@ -408,7 +408,7 @@ int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end, ...@@ -408,7 +408,7 @@ int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end,
goto end; goto end;
} }
if (code >= 1<<31) { if (code >= 1U<<31) {
ret = AVERROR(EILSEQ); /* out-of-range value */ ret = AVERROR(EILSEQ); /* out-of-range value */
goto end; goto end;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment