summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_cabac.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-09 08:48:38 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-11 11:49:54 +0100
commita6defd1f5b1bffcea7aa00ff379a6602cdaf2d05 (patch)
tree0f7654ce607d6487e1bc965ff98d230d24bcaa40 /libavcodec/hevc_cabac.c
parent9e9be5a20c0b36dce1cae11f5f5957886231a764 (diff)
hevc_cabac: decrease CABAC_MAX_BIN
Prevents shifts with undefined behavior, as no syntax element has a valid value greater than 1 << 31. Bug-Id: CID 1206635
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 ff55b02cc0..276cd339a3 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.