Revised logic for codec badges