summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-01-06Fix whitespace issues in opj_malloc.cStefan Weil
Some lines ended with spaces. Remove them. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-01-06Fix duplicate article in commentsStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-12-31Fix grammar in commentStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-11-27Fix typosJakub Wilk
2015-11-07Fix undefined size jp2 box handlingmayeut
Update #653
2015-11-01opj_decompress: Update error messageStefan Weil
The png format is also supported, so add it to the message. Remove also the unneeded blank character before \n. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-11-01Fin compiler warningsmayeut
2015-11-01Fix compiler warningsmayeut
2015-11-01convert: Fix compiler warningsStefan Weil
Fix this and other similar compiler warnings: src/bin/jp2/convert.c: In function ‘tga_readheader’: src/bin/jp2/convert.c:595:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] cmap_len = get_ushort(*(unsigned short*)(&tga[5])); Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-11-01convert: Remove unneeded type castsStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-10-29Fix typo in commentsStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-10-21Merge pull request #638 from stweil/masterMatthieu Darbois
Fix format strings and unneeded assignment
2015-10-21Avoid pointer arithmetic with (void *) pointers.Stephan Mühlstrasser
2015-10-21Generic aligned malloc implementation update.mayeut
Update #642
2015-10-20Generic aligned malloc implementation.Stephan Mühlstrasser
Used for platforms where none of posix_memalign(), memalign() and _aligned_malloc() is available.
2015-10-19Fix HP compiler warning about redeclaration of function (#640)Stephan Mühlstrasser
HP compiler warns: cc: "dwt.c", line 798: warning 562: Redeclaration of "opj_v4dwt_decode" with a different storage class specifier: "opj_v4dwt_decode" will have internal linkage. cc: "t2.c", line 1341: warning 562: Redeclaration of "opj_t2_init_seg" with a different storage class specifier: "opj_t2_init_seg" will have internal linkage.
2015-10-18Fix format strings and unneeded assignmentStefan Weil
The static code analyzer cppcheck warns about unsigned integers which use "%d" in the format string. It also warns about an unneeded assignment. Fix both issues. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-10-18Merge pull request #636 from uclouvain/opj_malloc-625Matthieu Darbois
Update allocation functions Fix #625 Fix #624 Fix #635
2015-10-18Cleanup includesmayeut
2015-10-18Fix _aligned_malloc usagemayeut
2015-10-17Fix inconsistent behavior of malloc(0)mayeut
Update #635 Update #625
2015-10-17Add missing checks. Fix crash on failed allocation.mayeut
2015-10-17Fixed crash on encodingmayeut
Update #624 Update #625
2015-10-15Fix OpenJPEG GitHub issue #633.Stephan Mühlstrasser
"opj_includes.h" must be included before system headers, otherwise inconsistent definitions of configuration macros lead to build failures on AIX.
2015-10-13Remove the explicit restrict keywordMathieu Malaterre
It would trigger a compiler error on xlc compiler. Fixes #620
2015-10-13I do not recall exactly... I would say that the correct version should beGiuseppe Baruffa
if (!JPWL_ASSUME) return false; meaning that once JPWL_ASSUME=1 the code will pass over such errors and try to decode anyway (just paired with the other JPWL_ASSUME on line 1112). Fixes #596
2015-10-12Remove a possible uninitialized variableMathieu Malaterre
Fixes #629
2015-10-12Minor style fix to remove c++ commentsMathieu Malaterre
2015-10-12minor tweaks to the codeMathieu Malaterre
2015-10-10Fix an issue with parenthesisMathieu Malaterre
2015-10-10Add paranoid sentinelsMathieu Malaterre
2015-10-10implement a portable aligned reallocMathieu Malaterre
2015-10-10do not use aligned_alloc since it requires c11Mathieu Malaterre
2015-10-09cleanup header file and move to implementationMathieu Malaterre
2015-10-09Revert "Make sure to allocate on 16bits alignement. Fix issue #624"mayeut
This reverts commit 553714a87a92930dd69f5762e0615c12dfcbd873.
2015-10-09Make sure to allocate on 16bits alignement. Fix issue #624Mathieu Malaterre
2015-10-07Fix warnings for C++Stefan Weil
g++ complains about invalid conversions like these ones: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive] error: invalid conversion from ‘void*’ to ‘opj_precision* {aka opj_prec*}’ [-fpermissive] Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-10-07Fixed problem that C++ compilation failed because of enum variable.Stephan Mühlstrasser
Replaced usage of an enum typedef for a variable that is used for bit flags with OPJ_UINT32 type.
2015-10-06Added missing casts for return values of opj_malloc()/opj_calloc().Stephan Mühlstrasser
2015-10-02Add check for seek support before trying TPsot==TNsot workaroundmayeut
2015-09-29Fix up-scaling bit depthmayeut
Fixes #609
2015-09-29Fix typo in variable nameStefan Weil
This makes checks with codespell easier. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-09-29Fix typos in comments and stringStefan Weil
Most typos were found by codespell. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-09-25Provide safer string copy than strncpymayeut
As per @boxerab suggestion in commit b9ca882749597e4943e609daba1d3c27694fe2ff
2015-09-25Fix resource leakmayeut
2015-09-25Fix resource leaks & unchecked resource allocationsmayeut
2015-09-24Fix some resource leaksmayeut
2015-09-23Use buffer on stack to read TGA headermayeut
Fixes a potential leak Fixes #601
2015-09-23Fix warning in rle4 decodingmayeut
2015-09-17Fix resource leak in opj_j2k_create_cstr_indexmayeut
Fixes #599