Commit 2f052eea authored by Luc Trudeau's avatar Luc Trudeau

Fix array subscript warning in get_uv_mode

This change does affect encoder nor the bitstream

Change-Id: I516e4750c5df6cb0e288365f78dd4875510548f4
parent 6cf2b467
......@@ -340,7 +340,7 @@ static INLINE int is_intrabc_block(const MB_MODE_INFO *mbmi) {
#if CONFIG_CFL
static INLINE PREDICTION_MODE get_uv_mode(UV_PREDICTION_MODE mode) {
assert(mode < UV_INTRA_MODES);
static const PREDICTION_MODE uv2y[UV_INTRA_MODES] = {
static const PREDICTION_MODE uv2y[] = {
DC_PRED, // UV_DC_PRED
V_PRED, // UV_V_PRED
H_PRED, // UV_H_PRED
......@@ -354,7 +354,9 @@ static INLINE PREDICTION_MODE get_uv_mode(UV_PREDICTION_MODE mode) {
SMOOTH_V_PRED, // UV_SMOOTH_V_PRED
SMOOTH_H_PRED, // UV_SMOOTH_H_PRED
PAETH_PRED, // UV_PAETH_PRED
DC_PRED, // CFL_PRED
DC_PRED, // UV_CFL_PRED
INTRA_INVALID, // UV_INTRA_MODES
INTRA_INVALID, // UV_MODE_INVALID
};
return uv2y[mode];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment