Emile: Reduce ERR logs on invalid JPEG images
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 15 Apr 2015 01:44:02 +0000 (10:44 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 15 Apr 2015 01:49:43 +0000 (10:49 +0900)
commit755b290404fa8936c421dc972cf60dc419f5500c
treef0d99855f7d1bcd0dd1a13c76bf2dd3d59ac26a5
parent1aa26c644f1fa63ed96ba2791ec661fe4d4fa33a
Emile: Reduce ERR logs on invalid JPEG images

When reading the head of a file, we may get the error that it is
not a JPEG image (which is normal), so we should not print any ERR.

The JPEG header read function can indeed be called to test whether a
file can be opened by the JPEG loader or not (any file).

Note that JPEG files don't have reliable magic numbers, so we
don't check them, but rely on libjpeg instead.

Fixes T2290
src/lib/emile/emile_image.c