changeset 1708:55db8d6dffa5

Do not apply input skip offset here anymore, it's handled more generally elsewhere.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Jun 2018 22:00:48 +0300
parents a0986cfd6f9d
children 2b592df78943 245f45073f4c
files tools/gfxconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Tue Jun 05 21:58:10 2018 +0300
+++ b/tools/gfxconv.c	Tue Jun 05 22:00:48 2018 +0300
@@ -1730,7 +1730,7 @@
         const DMImageFormat *ifmt = NULL;
         int index;
         dmMsg(4, "Trying to probe image formats.\n");
-        if (dmImageProbeGeneric(dataBuf + optInSkip, dataSize - optInSkip, &ifmt, &index) > 0)
+        if (dmImageProbeGeneric(dataBuf, dataSize, &ifmt, &index) > 0)
         {
             optInFormat = FFMT_IMAGE;
             optInSubFormat = index;