On Sat, Nov 15, 2014 at 11:51 AM, Vittorio Giovara <[email protected]> wrote: > On Tue, Nov 11, 2014 at 1:27 PM, Vittorio Giovara > <[email protected]> wrote: >> From: Luca Barbato <[email protected]> >> >> And use a macro to make apparent why the value. >> >> Bug-Id: CID 1108595 >> --- >> libavcodec/vp9.h | 3 ++- >> libavcodec/vp9block.c | 3 ++- >> 2 files changed, 4 insertions(+), 2 deletions(-) >> >> diff --git a/libavcodec/vp9.h b/libavcodec/vp9.h >> index 0a6c6ee..724288d 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; >> diff --git a/libavcodec/vp9block.c b/libavcodec/vp9block.c >> index caf3bcc..a92c794 100644 >> --- a/libavcodec/vp9block.c >> +++ b/libavcodec/vp9block.c >> @@ -71,7 +71,8 @@ static void decode_mode(VP9Context *s, VP9Block *const b) >> vp56_rac_get_prob_branchy(&s->c, >> >> s->prob.segpred[s->above_segpred_ctx[col] + >> >> s->left_segpred_ctx[row7]]))) { >> - int pred = 8, x; >> + int pred = MAX_SEGMENT - 1; >> + int x; >> >> for (y = 0; y < h4; y++) >> for (x = 0; x < w4; x++) >> -- >> 1.9.3 (Apple Git-50) >> > > ping >
ping -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
