avutil/avstring: Fix undefined shift

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-06-19 02:13:08 +02:00
parent fdbad24090
commit 2c881c7d45
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }