diff options
author | Marton Balint <cus@passwd.hu> | 2020-01-29 22:40:42 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-01-31 00:15:12 +0100 |
commit | 5df1c1ad9adb8ebc8795c756edcbd2923b09a225 (patch) | |
tree | 72e1306c0b4fee8309690717e8168f852b12723a /libavutil/common.h | |
parent | 24af459d1e568fd134476f305f4fba23bf2c386a (diff) | |
download | ffmpeg-5df1c1ad9adb8ebc8795c756edcbd2923b09a225.tar.gz |
avutil/common: use unsigned int in GET_UTF8
Right shift of signed value is implementation defined.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavutil/common.h')
-rw-r--r-- | libavutil/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index f09f0b486b..5568754bb9 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -389,7 +389,7 @@ static av_always_inline av_const int av_parity_c(uint32_t v) if ((val & 0xc0) == 0x80 || val >= 0xFE)\ ERROR\ while (val & top) {\ - int tmp= (GET_BYTE) - 128;\ + unsigned int tmp = (GET_BYTE) - 128;\ if(tmp>>6)\ ERROR\ val= (val<<6) + tmp;\ |