X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Fmelcode.c;fp=src%2Fgdcmjpegls%2FDecoder%2Fmelcode.c;h=0c70528bf19585464e388db86f52ea57446b6eae;hb=94015b89675cf4431c7e4953a597b70cfde03bcc;hp=82e5cbc045374e2a605193016a228c73b7adb5ea;hpb=5643fadddc60ed9986f21bddf1e1ed1d36f5d7a2;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/melcode.c b/src/gdcmjpegls/Decoder/melcode.c index 82e5cbc0..0c70528b 100644 --- a/src/gdcmjpegls/Decoder/melcode.c +++ b/src/gdcmjpegls/Decoder/melcode.c @@ -57,7 +57,7 @@ #define MELCSTATES 32 /* number of melcode states */ -static J[MELCSTATES] = { +static int J[MELCSTATES] = { 0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,5,5,6,6,7, 7,8,9,10,11,12,13,14,15 }; @@ -78,6 +78,7 @@ void init_process_run(int maxrun) /* maxrun is ignoreed when using MELCODE, kept here for function compatibility */ { int n_c; + (void)maxrun; for (n_c=0;n_c> 24))]; /* number of leading ones in the input stream, up to 8 */ for ( hits = 1; hits<=temp; hits++ ) @@ -131,7 +132,7 @@ int process_run_dec(int lineleft, int color) /* read the length of the remainder */ if ( melclen[color] ) { - register temp; + register int temp; GETBITS(temp, melclen[color]); /*** GETBITS is a macro, not a function */ runlen += temp; }