aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/common.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-01-29 23:42:21 +0100
committerMarton Balint <cus@passwd.hu>2020-01-31 00:15:13 +0100
commitd9f5fe4ed707d2d55680c8fd2eaf651a478af4c8 (patch)
tree4ab8f12cc153e916670ab57b54e798c525b59fd7 /libavutil/common.h
parent1466bb0badc0b719c08e51391831c32007e3ad96 (diff)
downloadffmpeg-d9f5fe4ed707d2d55680c8fd2eaf651a478af4c8.tar.gz
avutil/common: put ERROR statements into separate code blocks in GET_UTF8/16
To be able to safely use more than one statement in ERROR. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavutil/common.h')
-rw-r--r--libavutil/common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index 02671190a6..e6f076a13c 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -387,11 +387,11 @@ static av_always_inline av_const int av_parity_c(uint32_t v)
{\
uint32_t top = (val & 128) >> 1;\
if ((val & 0xc0) == 0x80 || val >= 0xFE)\
- ERROR\
+ {ERROR}\
while (val & top) {\
unsigned int tmp = (GET_BYTE) - 128;\
if(tmp>>6)\
- ERROR\
+ {ERROR}\
val= (val<<6) + tmp;\
top <<= 5;\
}\
@@ -414,7 +414,7 @@ static av_always_inline av_const int av_parity_c(uint32_t v)
if (hi < 0x800) {\
val = (GET_16BIT) - 0xDC00;\
if (val > 0x3FFU || hi > 0x3FFU)\
- ERROR\
+ {ERROR}\
val += (hi<<10) + 0x10000;\
}\
}\