--- ldecod/Makefile (JM 13.1) +++ ldecod/Makefile 2007-12-12 20:53:14.000000000 -0700 @@ -30,10 +30,15 @@ ifeq ($(DBG),1) SUFFIX= .dbg -FLAGS+= -g +FLAGS+= -g -DTRACE=1 +else +ifdef TRACE +SUFFIX= .trace +FLAGS+= -O3 -DTRACE=1 -fomit-frame-pointer else SUFFIX= -FLAGS+= -O3 +FLAGS+= -O3 -fomit-frame-pointer +endif endif OBJSUF= .o$(SUFFIX) --- ldecod/inc/defines.h (JM 13.1) +++ ldecod/inc/defines.h 2007-12-12 20:53:49.000000000 -0700 @@ -18,8 +18,8 @@ #ifndef _DEFINES_H_ #define _DEFINES_H_ -#if defined _DEBUG -#define TRACE 0 //!< 0:Trace off 1:Trace on 2:detailed CABAC context information +#if defined TRACE +#define TRACE 1 //!< 0:Trace off 1:Trace on 2:detailed CABAC context information #else #define TRACE 0 //!< 0:Trace off 1:Trace on 2:detailed CABAC context information #endif --- ldecod/src/ldecod.c (JM 13.1) +++ ldecod/src/ldecod.c 2007-12-12 20:54:04.000000000 -0700 @@ -665,7 +665,11 @@ else { fclose(p_log); - p_log=fopen(string,"a"); // File exist,just open for appending + if ((p_log=fopen(string,"a"))==0) // File exist,just open for appending + { + snprintf(errortext, ET_SIZE, "Error open file %s for appending",string); + error(errortext, 500); + } } fprintf(p_log,"|%s/%-4s", VERSION, EXT_VERSION); --- ldecod/src/sei.c (JM 13.1) +++ ldecod/src/sei.c 2007-12-12 20:54:04.000000000 -0700 @@ -746,7 +746,8 @@ printf("User data unregistered SEI message\n"); printf("uuid_iso_11578 = 0x"); #endif - assert (size>=16); + if (size >= 16) + printf("reserved sei too big!\n"); for (offset = 0; offset < 16; offset++) { --- lencod/Makefile (JM 13.1) +++ lencod/Makefile 2007-12-12 20:54:26.000000000 -0700 @@ -33,7 +33,7 @@ FLAGS+= -g else SUFFIX= -FLAGS+= -O3 +FLAGS+= -O3 -fomit-frame-pointer endif OBJSUF= .o$(SUFFIX)