Re: [PATCH v2 4/4] venus: hfi_parser: Add check to keep the number of codecs within range

From: Bryan O'Donoghue
Date: Thu Aug 10 2023 - 07:33:12 EST


On 10/08/2023 03:25, Vikash Garodia wrote:
+ if (hweight_long(core->dec_codecs) + hweight_long(core->enc_codecs) > MAX_CODEC_NUM)
+ return;
+

Shouldn't this be >= ?

struct hfi_plat_caps caps[MAX_CODEC_NUM];

---
bod