Commit 5d5078e2 authored by Luc Trudeau's avatar Luc Trudeau

[CFL] Add check to get_uv_mode

Check that the uv_mode is not UV_MODE_INVALID

Change-Id: Ibbe342397b47d94b0b6823d558a7ed713adef314
parent f2f3156f
......@@ -396,6 +396,7 @@ static INLINE PREDICTION_MODE get_y_mode(const MODE_INFO *mi, int block) {
#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] = {
DC_PRED, // UV_DC_PRED
V_PRED, // UV_V_PRED
......
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