Skip to content

Commit

Permalink
switched to stdint integer types, removed compilation warning, added …
Browse files Browse the repository at this point in the history
…encoder build
  • Loading branch information
lanmarc77 committed Nov 5, 2023
1 parent f98db15 commit ce1ae11
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions 26304_ANSI-C_source_code_v6_6_0/c-code/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ dummy:
@# i686-w64-mingw32-gcc -Wall -s -o decoder-new.exe common/*.c lib_amr/*.c decoder/*.c 3gplib/Release/er-libisomedia.dll -L3gplib/Release/ -l3gplib -lm
@# i686-w64-mingw32-gcc -O2 -s -o decoder-new.exe common/*.c lib_amr/*.c decoder/*.c 3gplib/Release/er-libisomedia.dll -L3gplib/Release/ -l3gplib -lm
gcc -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-unused-result -Wno-multichar -O2 -s -o decoder-new common/*.c lib_amr/*.c decoder/*.c libbase/*.c -lm
gcc -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-unused-result -Wno-multichar -O2 -s -o encoder-new common/*.c lib_amr/*.c encoder/*.c libbase/*.c -lm
@# i686-w64-mingw32-gcc -s -O2 -o encoder-new.exe common/*.c lib_amr/*.c encoder/*.c 3gplib/Release/er-libisomedia.dll -L3gplib/Release/ -l3gplib -lm
11 changes: 6 additions & 5 deletions 26304_ANSI-C_source_code_v6_6_0/c-code/lib_amr/typedef.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
*/
#ifndef typedef_h
#define typedef_h
#include <stdint.h>

/* change these typedef declarations to correspond with your platform */
typedef char Word8;
typedef unsigned char UWord8;
typedef short Word16;
typedef unsigned short UWord16;
typedef long Word32;
typedef int8_t Word8;
typedef uint8_t UWord8;
typedef int16_t Word16;
typedef uint16_t UWord16;
typedef int32_t Word32;
typedef double Float64;
typedef float Float32;

Expand Down
2 changes: 1 addition & 1 deletion 26304_ANSI-C_source_code_v6_6_0/c-code/libbase/MP4Atoms.h
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ typedef struct MP4ItemPropertyContainerAtom {
} MP4ItemPropertyContainerAtom, *MP4ItemPropertyContainerAtomPtr;

typedef struct MP4ItemPropertyAssociationEntryPropertyIndex {
u8 essential;
u16 essential;
u16 property_index;
} MP4ItemPropertyAssociationEntryPropertyIndex, *MP4ItemPropertyAssociationEntryPropertyIndexPtr;

Expand Down

0 comments on commit ce1ae11

Please sign in to comment.