summaryrefslogtreecommitdiff
blob: 2ee262d87d4f9d607396d2c39e9f39631a83faca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
http://trac.crystalspace3d.org/trac/CS/ticket/803

--- plugins/video/loader/png/pngimage.cpp
+++ plugins/video/loader/png/pngimage.cpp
@@ -378,7 +378,7 @@
   const png_bytep iBuffer = dataSource->GetUint8();
   const size_t iSize = dataSource->GetSize();
 
-  if (!png_check_sig (iBuffer, (int)iSize))
+  if (png_sig_cmp (iBuffer, 0, (int)iSize) != 0)
     return false;
   png = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0);
   if (!png)