Skip to content

Commit cd8262e

Browse files
committed
Merge pull request opencv#17650 from alalek:update_libjpeg-turbo
2 parents d2b8546 + ad930f6 commit cd8262e

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

3rdparty/libjpeg-turbo/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ ocv_warnings_disable(CMAKE_C_FLAGS -Wunused-parameter -Wsign-compare -Wshorten-6
44

55
set(VERSION_MAJOR 2)
66
set(VERSION_MINOR 0)
7-
set(VERSION_REVISION 4)
7+
set(VERSION_REVISION 5)
88
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION})
9-
set(LIBJPEG_TURBO_VERSION_NUMBER 2000004)
9+
set(LIBJPEG_TURBO_VERSION_NUMBER 2000005)
1010

1111
string(TIMESTAMP BUILD "opencv-${OPENCV_VERSION}-libjpeg-turbo")
1212
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
@@ -65,6 +65,8 @@ set(JPEG_LIB_VERSION 62)
6565
# OpenCV
6666
set(JPEG_LIB_VERSION "${VERSION}-${JPEG_LIB_VERSION}" PARENT_SCOPE)
6767

68+
set(THREAD_LOCAL "") # WITH_TURBOJPEG is not used
69+
6870
if(MSVC)
6971
add_definitions(-W3 -wd4996 -wd4018)
7072
endif()

3rdparty/libjpeg-turbo/jconfigint.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#endif
1616
#endif
1717

18+
/* How to obtain thread-local storage */
19+
#define THREAD_LOCAL @THREAD_LOCAL@
20+
1821
/* Define to the full name of this package. */
1922
#define PACKAGE_NAME "@CMAKE_PROJECT_NAME@"
2023

3rdparty/libjpeg-turbo/src/jdatadst.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ empty_mem_output_buffer(j_compress_ptr cinfo)
143143

144144
MEMCOPY(nextbuffer, dest->buffer, dest->bufsize);
145145

146-
if (dest->newbuffer != NULL)
147-
free(dest->newbuffer);
146+
free(dest->newbuffer);
148147

149148
dest->newbuffer = nextbuffer;
150149

3rdparty/libjpeg-turbo/src/jversion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This file was part of the Independent JPEG Group's software:
55
* Copyright (C) 1991-2012, Thomas G. Lane, Guido Vollbeding.
66
* libjpeg-turbo Modifications:
7-
* Copyright (C) 2010, 2012-2019, D. R. Commander.
7+
* Copyright (C) 2010, 2012-2020, D. R. Commander.
88
* For conditions of distribution and use, see the accompanying README.ijg
99
* file.
1010
*
@@ -36,7 +36,7 @@
3636
*/
3737

3838
#define JCOPYRIGHT \
39-
"Copyright (C) 2009-2019 D. R. Commander\n" \
39+
"Copyright (C) 2009-2020 D. R. Commander\n" \
4040
"Copyright (C) 2011-2016 Siarhei Siamashka\n" \
4141
"Copyright (C) 2015-2016, 2018 Matthieu Darbois\n" \
4242
"Copyright (C) 2015 Intel Corporation\n" \
@@ -49,4 +49,4 @@
4949
"Copyright (C) 1991-2016 Thomas G. Lane, Guido Vollbeding"
5050

5151
#define JCOPYRIGHT_SHORT \
52-
"Copyright (C) 1991-2019 The libjpeg-turbo Project and many others"
52+
"Copyright (C) 1991-2020 The libjpeg-turbo Project and many others"

0 commit comments

Comments
 (0)