lavu: fix GET_UTF8 macro.
Prevent 0xFE and 0xFF from being considered the start of non-standard 7-bytes sequences. No noticeable effect on speed.
This commit is contained in:
parent
1f6aa7de3e
commit
29ebb7ba8d
@ -297,7 +297,7 @@ static av_always_inline av_const int av_popcount64_c(uint64_t x)
|
|||||||
val= GET_BYTE;\
|
val= GET_BYTE;\
|
||||||
{\
|
{\
|
||||||
uint32_t top = (val & 128) >> 1;\
|
uint32_t top = (val & 128) >> 1;\
|
||||||
if ((val & 0xc0) == 0x80)\
|
if ((val & 0xc0) == 0x80 || val >= 0xFE)\
|
||||||
ERROR\
|
ERROR\
|
||||||
while (val & top) {\
|
while (val & top) {\
|
||||||
int tmp= GET_BYTE - 128;\
|
int tmp= GET_BYTE - 128;\
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
#define LIBAVUTIL_VERSION_MAJOR 52
|
#define LIBAVUTIL_VERSION_MAJOR 52
|
||||||
#define LIBAVUTIL_VERSION_MINOR 27
|
#define LIBAVUTIL_VERSION_MINOR 27
|
||||||
#define LIBAVUTIL_VERSION_MICRO 100
|
#define LIBAVUTIL_VERSION_MICRO 101
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
||||||
LIBAVUTIL_VERSION_MINOR, \
|
LIBAVUTIL_VERSION_MINOR, \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user