[FFmpeg-cvslog] avcodec/hevc_cabac: decrease CABAC_MAX_BIN
Michael Niedermayer
git at videolan.org
Mon Apr 28 20:43:54 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr 27 23:43:41 2014 +0200| [812066835189b9bf8c71d4178019949da4171259] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=812066835189b9bf8c71d4178019949da4171259
---
libavcodec/hevc_cabac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/hevc_cabac.c b/libavcodec/hevc_cabac.c
index da7a213..7d04eda 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.
More information about the ffmpeg-cvslog
mailing list