Remove hardcoded '/4' in size calculations. Accept extensions - work with other
than 4:2:0 (if anyone's actually/still using this program ;)).
Authored by: sms00 2006-03-08
Parent: [r3052]
Child: [r3054]