On 02/05/2016 02:46 AM, Michael Niedermayer wrote: > stride can be 0 and cause division by 0 later > It can't, as far as I can see, since I'm checking both avctx->width and avctx->height before doing anything else. Furthermore, it's not used in any division. Mats