Use ABS macro from libavutil.