diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-27 23:43:41 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-28 20:37:48 +0200 |
commit | 812066835189b9bf8c71d4178019949da4171259 (patch) | |
tree | 4831a7f67a926ed4afa30c52ae68e3e919b638c7 /libavcodec/hevc_cabac.c | |
parent | 096de451b0f93ee12703202b68d50c5544ad0df7 (diff) | |
download | ffmpeg-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.c | 2 |
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. |