summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-04-21 17:19:03 +0200
committerNicolas George <nicolas.george@normalesup.org>2013-04-24 19:41:27 +0200
commit29ebb7ba8d7e25b8a522393f1866a27e50869ba9 (patch)
treef590d20351ea32dbc78666bb1cb8d13118c7e335 /libavutil
parent1f6aa7de3ecc16275c0197673e36807f7ea10055 (diff)
downloadffmpeg-streaming-29ebb7ba8d7e25b8a522393f1866a27e50869ba9.zip
ffmpeg-streaming-29ebb7ba8d7e25b8a522393f1866a27e50869ba9.tar.gz
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.
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/common.h2
-rw-r--r--libavutil/version.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index e303c25..13f2ffb 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -297,7 +297,7 @@ static av_always_inline av_const int av_popcount64_c(uint64_t x)
val= GET_BYTE;\
{\
uint32_t top = (val & 128) >> 1;\
- if ((val & 0xc0) == 0x80)\
+ if ((val & 0xc0) == 0x80 || val >= 0xFE)\
ERROR\
while (val & top) {\
int tmp= GET_BYTE - 128;\
diff --git a/libavutil/version.h b/libavutil/version.h
index e46e97c..abcdba8 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -76,7 +76,7 @@
#define LIBAVUTIL_VERSION_MAJOR 52
#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, \
LIBAVUTIL_VERSION_MINOR, \
OpenPOWER on IntegriCloud