jmacd / xdelta

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

file contents hashing for file selection #136

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
filenames can change due to disagreement with original providers of files, for 
sorting reasons.
therefore primary detection should be crc instead of filenames.
you don't want to patch broken video files anyway.

Original issue reported on code.google.com by birkne...@gmail.com on 6 Feb 2012 at 3:00

GoogleCodeExporter commented 9 years ago
This is an issue, but it's one that has major consequences for the program 
design because when we begin working on decoding a delta, we may not actually 
entirely read the input files.  The program is capable of reading from a FIFO 
or a pipe, for example, so we don't know the CRC until the end of the 
operation.  That's when XD3_INVALID_INPUT is triggered, in case the inputs are 
wrong.  I think what you're looking for is a higher level program to be a bit 
smarter about choosing inputs, however, it will require more than one pass over 
the data and may not work (seamlessly) for compressed inputs and fifos, etc.

Original comment by josh.mac...@gmail.com on 18 Jun 2012 at 12:21