[PATCH 6.1 320/372] media: venus: hfi_parser: Add check to keep the number of codecs within range