Commit a58c32bc authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VLCThumbnailer: Fix build for older libjpeg versions

Apparently, some versionning defines are only present starting at a
specific version...
parent 5738f2bb
......@@ -239,8 +239,9 @@ bool VLCThumbnailer::compress(uint8_t* buff, FilePtr file, void *data)
compInfo.image_width = Width;
compInfo.image_height = m_height;
compInfo.input_components = Bpp;
#if JPEG_LIB_VERSION_MAJOR <= 8 && JPEG_LIB_VERSION_MINOR < 4
compInfo.in_color_space = JCS_EXT_BGRX;
#if ( !defined(JPEG_LIB_VERSION_MAJOR) && !defined(JPEG_LIB_VERSION_MINOR) ) || \
( JPEG_LIB_VERSION_MAJOR <= 8 && JPEG_LIB_VERSION_MINOR < 4 )
compInfo.in_color_space = JCS_EXT_BGR;
#else
compInfo.in_color_space = JCS_RGB;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment