projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b08b8ba
)
fixed: add GIF as known header to cximage.
author
WiSo
<wiso@xbmc.org>
Thu, 2 Jan 2014 17:52:22 +0000
(18:52 +0100)
committer
WiSo
<wiso@xbmc.org>
Sat, 4 Jan 2014 12:37:00 +0000
(13:37 +0100)
lib/cximage-6.0/CxImage/DllInterface.cpp
patch
|
blob
|
history
diff --git
a/lib/cximage-6.0/CxImage/DllInterface.cpp
b/lib/cximage-6.0/CxImage/DllInterface.cpp
index
d6f8ac8
..
8e13953
100644
(file)
--- 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;
}