ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Sun Nov  9 
08:48:38 2014 +0100| [a6defd1f5b1bffcea7aa00ff379a6602cdaf2d05] | committer: 
Vittorio Giovara

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6defd1f5b1bffcea7aa00ff379a6602cdaf2d05
---

 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 ff55b02..276cd33 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.

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to