X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmmpeg2%2Fsrc%2Fmpeg2dec%2Fsubspic.c;h=33b2ae14f7e314459d9eb66d8d9f2f074d6bc9df;hb=938efcacae6ade6c08a231539aaf3f98acbb6fa0;hp=a9b8d515867add5361d913e714a23bf32db0a8e9;hpb=49b121630e9d2209696969851f27a0976226977a;p=gdcm.git diff --git a/src/gdcmmpeg2/src/mpeg2dec/subspic.c b/src/gdcmmpeg2/src/mpeg2dec/subspic.c index a9b8d515..33b2ae14 100644 --- a/src/gdcmmpeg2/src/mpeg2dec/subspic.c +++ b/src/gdcmmpeg2/src/mpeg2dec/subspic.c @@ -31,15 +31,15 @@ #include "global.h" /* private prototypes*/ -static void Read_Frame _ANSI_ARGS_((char *filename, +static void Read_Frame _ANSI_ARGS_((const char *filename, unsigned char *frame_buffer[], int framenum)); static void Copy_Frame _ANSI_ARGS_((unsigned char *src, unsigned char *dst, int width, int height, int parity, int incr)); -static int Read_Components _ANSI_ARGS_ ((char *filename, +static int Read_Components _ANSI_ARGS_ ((const char *filename, unsigned char *frame[3], int framenum)); static int Read_Component _ANSI_ARGS_ ((char *fname, unsigned char *frame, int width, int height)); -static int Extract_Components _ANSI_ARGS_ ((char *filename, +static int Extract_Components _ANSI_ARGS_ ((const char *filename, unsigned char *frame[3], int framenum)); @@ -148,12 +148,12 @@ int sequence_framenum; /* Note: fields are only read to serve as the same-frame reference for a second field */ static void Read_Frame(fname,frame,framenum) -char *fname; +const char *fname; unsigned char *frame[]; int framenum; { int parity; - int rerr = 0; + int rerr; int field_mode; if(framenum<0) @@ -208,7 +208,7 @@ int framenum; static int Read_Components(filename, frame, framenum) -char *filename; +const char *filename; unsigned char *frame[3]; int framenum; { @@ -276,7 +276,7 @@ int Height; MPEG Committee's syntax validation and conformance ad-hoc groups from the year 1993 until 1995 */ static int Extract_Components(filename, frame, framenum) -char *filename; +const char *filename; unsigned char *frame[3]; int framenum; {