cheese: improve format parsing
Check if both width and height are of the expected value type. Check if width and height are > 0 before adding the format as a valid format. Adding 0x0 resolutions causes a divide by 0 later when we calculate aspect ratios.
Showing with 18 additions and 7 deletions