aboutsummaryrefslogtreecommitdiff
path: root/lib/cximage-6.0/CxImage
diff options
context:
space:
mode:
authorWiSo <wiso@xbmc.org>2014-01-02 18:52:22 +0100
committerWiSo <wiso@xbmc.org>2014-01-04 13:37:00 +0100
commit99ae381137d03461a2be649041b5fc04777140e5 (patch)
treea42b9df0f6150a48d4d11cc470cd8c5dacfe6c99 /lib/cximage-6.0/CxImage
parentb08b8ba4a2dd6f9cb35de1a2840188301cc4622d (diff)
fixed: add GIF as known header to cximage.
Diffstat (limited to 'lib/cximage-6.0/CxImage')
-rw-r--r--lib/cximage-6.0/CxImage/DllInterface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/cximage-6.0/CxImage/DllInterface.cpp b/lib/cximage-6.0/CxImage/DllInterface.cpp
index d6f8ac8f9a..8e139531cb 100644
--- a/lib/cximage-6.0/CxImage/DllInterface.cpp
+++ b/lib/cximage-6.0/CxImage/DllInterface.cpp
@@ -94,6 +94,8 @@ int DetectFileType(const BYTE* pBuffer, int nBufSize)
// don't include the last APP0 byte (0xE0), as some (non-conforming) JPEG/JFIF files might have some other
// APPn-specific data here, and we should skip over this.
return CXIMAGE_FORMAT_JPG;
+ if (pBuffer[0] == 'G' && pBuffer[1] == 'I' && pBuffer[2] == 'F')
+ return CXIMAGE_FORMAT_GIF;
return CXIMAGE_FORMAT_UNKNOWN;
}