diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-11-11 13:27:01 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-21 12:37:05 +0000 |
commit | 312daa15891dc7abb77a404fe927d5ee35c52a71 (patch) | |
tree | e278152367cd18bf38ab8afc7d8496dcba66d5d9 /libavcodec/vp9.h | |
parent | d466d82faaf6e0e57a3a4be5e38e3902ef251ac3 (diff) |
vp9: Use the correct upper bound for seg_id
And use a macro to make apparent why the value.
Bug-Id: CID 1108595
Diffstat (limited to 'libavcodec/vp9.h')
-rw-r--r-- | libavcodec/vp9.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vp9.h b/libavcodec/vp9.h index 0a6c6eed42..724288dd3d 100644 --- a/libavcodec/vp9.h +++ b/libavcodec/vp9.h @@ -313,6 +313,7 @@ typedef struct VP9Context { uint8_t temporal; uint8_t absolute_vals; uint8_t update_map; + #define MAX_SEGMENT 8 struct { uint8_t q_enabled; uint8_t lf_enabled; @@ -323,7 +324,7 @@ typedef struct VP9Context { int8_t lf_val; int16_t qmul[2][2]; uint8_t lflvl[4][2]; - } feat[8]; + } feat[MAX_SEGMENT]; } segmentation; struct { unsigned log2_tile_cols, log2_tile_rows; |