Update to current libav/ffmpeg API
Fix possible crashes in resize and crop filters with high bitdepth input
Replace some float math in cli with integer math