lavf/utils: Avoid an overflow for huge negative durations.