On 09/11/14 08:48, Vittorio Giovara wrote:
From: Michael Niedermayer <[email protected]>

Prevents shifts with undefined behavior.

Bug-Id: CID 1206635
---
  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.


why it was 100 to begin with? and why now 31?

Does the specification say anything about it?

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to