You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avutil/common: add parenthesis around GET_16BIT in GET_UTF16
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -408,11 +408,11 @@ static av_always_inline av_const int av_parity_c(uint32_t v)
|
|||||||
* typically a goto statement.
|
* typically a goto statement.
|
||||||
*/
|
*/
|
||||||
#define GET_UTF16(val, GET_16BIT, ERROR)\
|
#define GET_UTF16(val, GET_16BIT, ERROR)\
|
||||||
val = GET_16BIT;\
|
val = (GET_16BIT);\
|
||||||
{\
|
{\
|
||||||
unsigned int hi = val - 0xD800;\
|
unsigned int hi = val - 0xD800;\
|
||||||
if (hi < 0x800) {\
|
if (hi < 0x800) {\
|
||||||
val = GET_16BIT - 0xDC00;\
|
val = (GET_16BIT) - 0xDC00;\
|
||||||
if (val > 0x3FFU || hi > 0x3FFU)\
|
if (val > 0x3FFU || hi > 0x3FFU)\
|
||||||
ERROR\
|
ERROR\
|
||||||
val += (hi<<10) + 0x10000;\
|
val += (hi<<10) + 0x10000;\
|
||||||
|
|||||||
Reference in New Issue
Block a user