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
pull/95/head
Michael Niedermayer 10 years ago committed by Vittorio Giovara
parent 9e9be5a20c
commit a6defd1f5b
  1. 2
      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.

Loading…
Cancel
Save