avutil/common: use unsigned int in GET_UTF8

Right shift of signed value is implementation defined.

Signed-off-by: Marton Balint <cus@passwd.hu>
pull/343/head
Marton Balint 5 years ago
parent 24af459d1e
commit 5df1c1ad9a
  1. 2
      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;\

Loading…
Cancel
Save