Browse Source

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
tags/n2.5
Michael Niedermayer Vittorio Giovara 11 years ago
parent
commit
a6defd1f5b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/hevc_cabac.c

+ 1
- 1
libavcodec/hevc_cabac.c View File

@@ -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