fix av_reduce() with things like 1/0 and 0/0