Some Compressed Files Don't Load (mlv_dump bug)
The test file bad-wb_yosemite.mlv is not good friends with any mlv_dump that supports LJ92 decompression!
mlv_dump gives the error:
LJ92: Failed (-1)
Whenever trying to do anything with it. mlv_dump refuses to work with the data at all. MLVFS would probably handle it properly.
Luckily enough, dcraw handles LJ92-compressed DNGs perfectly! And luckily, these newer mlv_dumps have pass-through options, which just pass the compressed data through without touching it (unfortunately that means no chroma smoothing or bit depth manipulation, but that shouldn't be done in mlv_dump anyway!)
Problem is, the option varies:
-c -coption to passthrough. This gives the same error on @bouncyball's version.
- @bouncyball changed it to
A few things to fix here:
- At the beginning of every convmlv run on an MLV file, we should try to develop a single DNG. If it gives the
LJ92error, alert the user that their mlv_dump processing features won't work anymore, and try adding
-c -c. If that still fails, try adding
-p; that'll work for versions based on @bouncyball's.
- In the future, drop all reliance on mlv_dump's processing - we just don't know what we get with it.
Maybe, it's time we distribute our own mlv_dump, or "adopt" one, instead of trying to support them all. The forking in the code base of mlv_dump seems to keep falling deeper and deeper into insanity...