[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:47:05 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=a1877c0

The following commit has been merged in the master branch:
commit a1877c04e2b38c79411ebf803cd507d9511b2da0
Author: Robin Mills <robin at clanmills.com>
Date:   Tue Sep 27 19:26:18 2016 +0000

    #1230 and #1199 Correction to r4575
---
 src/webpimage.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/webpimage.cpp b/src/webpimage.cpp
index e356058..2e1f65e 100644
--- a/src/webpimage.cpp
+++ b/src/webpimage.cpp
@@ -442,8 +442,8 @@ namespace Exiv2 {
             }
 
             io_->seek(0,BasicIo::beg); // rewind
-            uint64_t offset = (uint64_t) io_->tell();
             while ( !io_->eof() && (uint64_t) io_->tell() < filesize) {
+                uint64_t offset = (uint64_t) io_->tell();
                 byte     size_buff[WEBP_TAG_SIZE];
                 io_->read(chunkId.pData_, WEBP_TAG_SIZE);
                 io_->read(size_buff, WEBP_TAG_SIZE);
@@ -453,7 +453,7 @@ namespace Exiv2 {
 
                 if ( bPrint ) {
                     out << Internal::indent(depth)
-                    << Internal::stringFormat("  %s | %8u | %8u | ", (const char*)chunkId.pData_,size,offset)
+                    << Internal::stringFormat("  %s | %8u | %8u | ", (const char*)chunkId.pData_,size,(uint32_t)offset)
                     << Internal::binaryToString(payload,payload.size_>32?32:payload.size_)
                     << std::endl;
                 }
@@ -472,7 +472,6 @@ namespace Exiv2 {
                 }
 
                 if ( offset && io_->tell() % 2 ) io_->seek(+1, BasicIo::cur); // skip padding byte on sub-chunks
-                offset = io_->tell();
             }
         }
     }

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list