Patch #1271 » patch_crw.diff
| exiv2-0.26/src/crwimage.cpp 2017-01-31 11:36:40.306101926 -0500 | ||
|---|---|---|
| 133 | 133 |
clearMetadata(); |
| 134 | 134 |
// read all metadata into memory |
| 135 | 135 |
// we should put this into clearMetadata(), however it breaks the test suite! |
| 136 |
#ifdef EXV_DO_PRINTSTRUCTURE_IN_CRW |
|
| 136 | 137 |
try {
|
| 137 | 138 |
std::ofstream devnull; |
| 138 | 139 |
printStructure(devnull,kpsRecursive,0); |
| ... | ... | |
| 140 | 141 |
DataBuf file(io().size()); |
| 141 | 142 |
io_->read(file.pData_,file.size_); |
| 142 | 143 |
} |
| 144 |
#else |
|
| 145 |
DataBuf file(io().size()); |
|
| 146 |
io_->read(file.pData_,file.size_); |
|
| 147 |
#endif |
|
| 143 | 148 | |
| 144 | 149 |
CrwParser::decode(this, io_->mmap(), io_->size()); |
| 145 | 150 | |