From: malaterre Date: Sat, 21 May 2005 16:30:54 +0000 (+0000) Subject: BUG: Replace 0 with SEEK_SET, this was wrong for djgpp X-Git-Tag: Version1.2.bp~688 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7c26892f568c67ce60f08f1a21fa64105bf6bb2d;p=gdcm.git BUG: Replace 0 with SEEK_SET, this was wrong for djgpp --- diff --git a/src/gdcmmpeg2/src/mpeg2dec/mpeg2dec.c b/src/gdcmmpeg2/src/mpeg2dec/mpeg2dec.c index c47c9020..209013d6 100644 --- a/src/gdcmmpeg2/src/mpeg2dec/mpeg2dec.c +++ b/src/gdcmmpeg2/src/mpeg2dec/mpeg2dec.c @@ -112,13 +112,13 @@ char *argv[]; break; } - lseek(base.Infile, 0l, 0); + lseek(base.Infile, 0l, SEEK_SET); Initialize_Buffer(); } if(base.Infile!=0) { - lseek(base.Infile, 0l, 0); + lseek(base.Infile, 0l, SEEK_SET); } Initialize_Buffer(); diff --git a/src/gdcmmpeg2/src/mpeg2dec/subspic.c b/src/gdcmmpeg2/src/mpeg2dec/subspic.c index 67bb555d..fbe238b6 100644 --- a/src/gdcmmpeg2/src/mpeg2dec/subspic.c +++ b/src/gdcmmpeg2/src/mpeg2dec/subspic.c @@ -320,7 +320,7 @@ int framenum; /* seek to location in big file where desired frame begins */ /* note: this offset cannot exceed a few billion bytes due to the */ /* obvious limitations of 32-bit integers */ - fseek(fd, offset, 0); + fseek(fd, offset, SEEK_SET); /* Y */ for (line=0; line