Browse Source

avutil/common: use unsigned int in GET_UTF8

Right shift of signed value is implementation defined.

Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n4.3
Marton Balint 6 years ago
parent
commit
5df1c1ad9a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/common.h

+ 1
- 1
libavutil/common.h View File

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


Loading…
Cancel
Save