aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_cabac.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-27 23:43:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-28 20:37:48 +0200
commit812066835189b9bf8c71d4178019949da4171259 (patch)
tree4831a7f67a926ed4afa30c52ae68e3e919b638c7 /libavcodec/hevc_cabac.c
parent096de451b0f93ee12703202b68d50c5544ad0df7 (diff)
downloadffmpeg-812066835189b9bf8c71d4178019949da4171259.tar.gz
avcodec/hevc_cabac: decrease CABAC_MAX_BIN
Prevents shifts with undefined behavior Fixes CID1206634 Fixes CID1206635 Fixed CID1206636 Reviewed-by: smarter Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc_cabac.c')
-rw-r--r--libavcodec/hevc_cabac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_cabac.c b/libavcodec/hevc_cabac.c
index da7a21373d..7d04eda0c6 100644
--- a/libavcodec/hevc_cabac.c
+++ b/libavcodec/hevc_cabac.c
@@ -27,7 +27,7 @@
#include "cabac_functions.h"
#include "hevc.h"
-#define CABAC_MAX_BIN 100
+#define CABAC_MAX_BIN 31
/**
* number of bin by SyntaxElement.