On 2/21/2014 5:59 PM, Michael Niedermayer wrote: > this probably needs some checks on the apsect ratio being valid > and not 0/1 or 0/0 I copied this exactly from libx264.c, which has no such checks. Is it not guaranteed elsewhere in libavcodec? - Derek