[v1.4]Fixed issue 6 on google code. Variable "pi" not freed or pointed-to in function "pi_create_encode". Thanks to Kent Mein for reporting this.
[v1.4]Fixed problem with Borland C++ Builder (Borland C do not have lrintf). Thanks Marek Mauder for this fix.
This commit is contained in:
parent
203a264f96
commit
fdf04af271
|
@ -6,6 +6,8 @@ What's New for OpenJPEG
|
||||||
+ : added
|
+ : added
|
||||||
|
|
||||||
April 8, 2010
|
April 8, 2010
|
||||||
|
* [FOD] Fixed issue 6 on google code. Variable "pi" not freed or pointed-to in function "pi_create_encode". Thanks to Kent Mein for reporting this.
|
||||||
|
* [FOD] Fixed problem with Borland C++ Builder (Borland C do not have lrintf). Thanks Marek Mauder for this fix.
|
||||||
* [FOD] Fixed pi.c bug (issue 15 on google code). Thanks to Anton Lionel for catching this.
|
* [FOD] Fixed pi.c bug (issue 15 on google code). Thanks to Anton Lionel for catching this.
|
||||||
* [FOD] Fixed MJ2 codec bugs (issues 23-24 on google code). Thanks to Winfried for these patches
|
* [FOD] Fixed MJ2 codec bugs (issues 23-24 on google code). Thanks to Winfried for these patches
|
||||||
* [FOD] Fixed JP3D codec file format analyzer. Thanks to Kristóf Ralovich for this patch.
|
* [FOD] Fixed JP3D codec file format analyzer. Thanks to Kristóf Ralovich for this patch.
|
||||||
|
|
|
@ -560,7 +560,7 @@ void mqc_init_dec(opj_mqc_t *mqc, unsigned char *bp, int len) {
|
||||||
mqc->a = 0x8000;
|
mqc->a = 0x8000;
|
||||||
}
|
}
|
||||||
|
|
||||||
INLINE int mqc_decode(opj_mqc_t *const mqc) {
|
int mqc_decode(opj_mqc_t *const mqc) {
|
||||||
int d;
|
int d;
|
||||||
mqc->a -= (*mqc->curctx)->qeval;
|
mqc->a -= (*mqc->curctx)->qeval;
|
||||||
if ((mqc->c >> 16) < (*mqc->curctx)->qeval) {
|
if ((mqc->c >> 16) < (*mqc->curctx)->qeval) {
|
||||||
|
|
|
@ -86,8 +86,8 @@ Most compilers implement their own version of this keyword ...
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* MSVC does not have lrintf */
|
/* MSVC and Borland C do not have lrintf */
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
||||||
static INLINE long lrintf(float f){
|
static INLINE long lrintf(float f){
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -614,6 +614,7 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye
|
||||||
int tpnum = compno;
|
int tpnum = compno;
|
||||||
if (pi_create_encode(pi, cp,tileno,poc,tpnum,tppos,t2_mode,cur_totnum_tp)) {
|
if (pi_create_encode(pi, cp,tileno,poc,tpnum,tppos,t2_mode,cur_totnum_tp)) {
|
||||||
opj_event_msg(t2->cinfo, EVT_ERROR, "Error initializing Packet Iterator\n");
|
opj_event_msg(t2->cinfo, EVT_ERROR, "Error initializing Packet Iterator\n");
|
||||||
|
pi_destroy(pi, cp, tileno);
|
||||||
return -999;
|
return -999;
|
||||||
}
|
}
|
||||||
while (pi_next(&pi[poc])) {
|
while (pi_next(&pi[poc])) {
|
||||||
|
|
Loading…
Reference in New Issue