jmacd / xdelta

open-source binary diff, delta/differential compression tools, VCDIFF/RFC 3284 delta compression
http://xdelta.org
1.14k stars 189 forks source link

Setting -B parameter size over 2 GiB does not work #273

Open sgmihai opened 4 months ago

sgmihai commented 4 months ago

2147483648 works 2147483649 results in sigsegv on linux (address boundary error). On windows it just exits after a little while with no error message.

I want to patch an mkv to m2ts, so different video containers for same stream. With -B = 2GB, on a 25 GB file, around 16GB it begins to lose efficiency, until it doesn't find any more common data, patch resulting in ~7GB in the end. Before that it added around 800 kb to a 64MB block or so. I would really like to know how you can run it with larger window sizes, maybe some older versions work ? So I can at least see what's the performance (smallest size) it can get, to compare with other tools like HDiffPatch.