avcodec/vvc/ctu: Simplify code at the end of pred_mode_decode()

This simplification assumes that the code is correct

Fixes: CID1560036 Logically dead code

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-05-19 00:54:59 +02:00
parent affeca005a
commit 8f74c313f1
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -1080,12 +1080,10 @@ static PredMode pred_mode_decode(VVCLocalContext *lc,
} }
if (pred_mode_ibc_flag) if (pred_mode_ibc_flag)
pred_mode = MODE_IBC; pred_mode = MODE_IBC;
return pred_mode;
} else { } else {
pred_mode_flag = is_4x4 || mode_type == MODE_TYPE_INTRA || return MODE_INTRA;
mode_type != MODE_TYPE_INTER || IS_I(rsh);
pred_mode = pred_mode_flag ? MODE_INTRA : MODE_INTER;
} }
return pred_mode;
} }
static void sbt_info(VVCLocalContext *lc, const VVCSPS *sps) static void sbt_info(VVCLocalContext *lc, const VVCSPS *sps)