diff options
author | Marton Balint <cus@passwd.hu> | 2020-01-29 22:41:50 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-01-31 00:15:13 +0100 |
commit | 1466bb0badc0b719c08e51391831c32007e3ad96 (patch) | |
tree | 3fb2b16bd1c42963b08bafea5cad584fb6a6f92a /libavutil | |
parent | 5df1c1ad9adb8ebc8795c756edcbd2923b09a225 (diff) | |
download | ffmpeg-1466bb0badc0b719c08e51391831c32007e3ad96.tar.gz |
avutil/common: add parenthesis around GET_16BIT in GET_UTF16
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index 5568754bb9..02671190a6 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -408,11 +408,11 @@ static av_always_inline av_const int av_parity_c(uint32_t v) * typically a goto statement. */ #define GET_UTF16(val, GET_16BIT, ERROR)\ - val = GET_16BIT;\ + val = (GET_16BIT);\ {\ unsigned int hi = val - 0xD800;\ if (hi < 0x800) {\ - val = GET_16BIT - 0xDC00;\ + val = (GET_16BIT) - 0xDC00;\ if (val > 0x3FFU || hi > 0x3FFU)\ ERROR\ val += (hi<<10) + 0x10000;\ |