tv: Handle malformed codec