changeset 1629:f31b77416a83

gfxconv bailed out prematurely for probed inputs. Fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2018 22:19:35 +0300
parents a549d33d543a
children 00e0d345e7f1
files tools/gfxconv.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Wed May 16 15:42:24 2018 +0300
+++ b/tools/gfxconv.c	Thu May 24 22:19:35 2018 +0300
@@ -1709,6 +1709,7 @@
         if (res == DMERR_OK)
             optInFormat = FFMT_BITMAP;
         else
+        if (optInFormat == FFMT_BITMAP)
         {
             dmErrorMsg("Could not decode input image: %s.\n", dmErrorStr(res));
             goto error;