Permalink
Browse files

jpeg: fix build for jpeg8

  • Loading branch information...
1 parent 26bff0b commit db045676e462240cf4edd3a86fa0386aaedaac20 theuni committed May 7, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/guilib/JpegIO.cpp
View
@@ -483,7 +483,11 @@ bool CJpegIO::CreateThumbnailFromSurface(unsigned char* buffer, unsigned int wid
}
else
{
+#if JPEG_LIB_VERSION < 80
x_jpeg_mem_dest(&cinfo, &result, &outBufSize);
+#else
+ jpeg_mem_dest(&cinfo, &result, &outBufSize);
+#endif
cinfo.image_width = width;
cinfo.image_height = height;
cinfo.input_components = 3;

0 comments on commit db04567

Please sign in to comment.