Optimise checking of existing image data.
authorCarl Hetherington <cth@carlh.net>
Thu, 3 Sep 2015 15:26:52 +0000 (16:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Sep 2015 09:21:12 +0000 (10:21 +0100)
commit265a02fceb9309338f8ce028ba93bb62cda53746
tree4d5bf42a91e5e769b7295aa701c546c32b99fda3
parent4624e5b01145d332e2923bbf2c7f6f0103700a27
Optimise checking of existing image data.

When checking existing image data go from the end backwards until
a good hash is found rather than from the start forwards until
a bad hash is found.  This is a lot quicker for long files but
may miss a corrupted frame somewhere (however unlikely this is).
ChangeLog
src/lib/writer.cc
src/lib/writer.h
test/recover_test.cc