#1189 Use in-memory file to dump Nikon MakerNote tag 0x927c

This commit is contained in:
Robin Mills 2016-06-13 05:49:40 +00:00
parent 4f135ed1d3
commit 0cc97c7f23
2 changed files with 6 additions and 1 deletions

View File

@ -593,7 +593,12 @@ namespace Exiv2 {
io.read(bytes,jump ) ; // read
bytes[jump]=0 ;
if ( ::strcmp("Nikon",chars) == 0 ) {
printTiffStructure(io,out,option,depth,(size_t)(offset+jump));
// tag is an embedded tiff
byte* bytes=new byte[count-jump] ; // allocate memory
io.read(bytes,count-jump) ; // read
MemIo memIo(bytes,count-jump) ; // create a file
printTiffStructure(memIo,out,option,depth);
delete[] bytes ; // free
}
io.seek(restore,BasicIo::beg); // restore
}

Binary file not shown.