#1189 Use in-memory file to dump Nikon MakerNote tag 0x927c
This commit is contained in:
parent
4f135ed1d3
commit
0cc97c7f23
@ -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.
Loading…
Reference in New Issue
Block a user