You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avutil/common: use unsigned int in GET_UTF8
Right shift of signed value is implementation defined. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -389,7 +389,7 @@ static av_always_inline av_const int av_parity_c(uint32_t v)
|
|||||||
if ((val & 0xc0) == 0x80 || val >= 0xFE)\
|
if ((val & 0xc0) == 0x80 || val >= 0xFE)\
|
||||||
ERROR\
|
ERROR\
|
||||||
while (val & top) {\
|
while (val & top) {\
|
||||||
int tmp= (GET_BYTE) - 128;\
|
unsigned int tmp = (GET_BYTE) - 128;\
|
||||||
if(tmp>>6)\
|
if(tmp>>6)\
|
||||||
ERROR\
|
ERROR\
|
||||||
val= (val<<6) + tmp;\
|
val= (val<<6) + tmp;\
|
||||||
|
|||||||
Reference in New Issue
Block a user