diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-19 03:13:08 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-19 03:25:48 +0300 |
commit | 2c881c7d45bc10205912e069d1c25103884a2059 (patch) | |
tree | 4ba7f8db2edcbcaf2523fbc1e1f2b1d1fd794e17 /libavutil/avstring.c | |
parent | fdbad24090e167821c8587e4f26d0978fe4bef6b (diff) |
avutil/avstring: Fix undefined shift
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/avstring.c')
-rw-r--r-- | libavutil/avstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/avstring.c b/libavutil/avstring.c index f785816063..b184442306 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -408,7 +408,7 @@ int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end, goto end; } - if (code >= 1<<31) { + if (code >= 1U<<31) { ret = AVERROR(EILSEQ); /* out-of-range value */ goto end; } |