Ronald S. Bultje wrote:
Hi,On Thu, Jan 12, 2012 at 12:51 PM, Stratulat Oana <[email protected]> wrote:int adx = x1 - x0; int ady = FFABS(dy); int sy = dy< 0 ? -1 : 1; + if (adx == 0) + adx = 1;OK, I guess. The ugliness has to go somewhere. Maybe add a comment that it prevents a division by zero?
maybe add an av_log to inform the user? _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
