From a6defd1f5b1bffcea7aa00ff379a6602cdaf2d05 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 9 Nov 2014 08:48:38 +0100 Subject: 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 --- libavcodec/hevc_cabac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/hevc_cabac.c') 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. -- cgit v1.2.3