comparison tools/gfxconv.c @ 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 625a7867877e
children 00e0d345e7f1
comparison
equal deleted inserted replaced
1628:a549d33d543a 1629:f31b77416a83
1707 } 1707 }
1708 1708
1709 if (res == DMERR_OK) 1709 if (res == DMERR_OK)
1710 optInFormat = FFMT_BITMAP; 1710 optInFormat = FFMT_BITMAP;
1711 else 1711 else
1712 if (optInFormat == FFMT_BITMAP)
1712 { 1713 {
1713 dmErrorMsg("Could not decode input image: %s.\n", dmErrorStr(res)); 1714 dmErrorMsg("Could not decode input image: %s.\n", dmErrorStr(res));
1714 goto error; 1715 goto error;
1715 } 1716 }
1716 } 1717 }