]> Creatis software - gdcm.git/commitdiff
BUG: Replace 0 with SEEK_SET, this was wrong for djgpp
authormalaterre <malaterre>
Sat, 21 May 2005 16:30:54 +0000 (16:30 +0000)
committermalaterre <malaterre>
Sat, 21 May 2005 16:30:54 +0000 (16:30 +0000)
src/gdcmmpeg2/src/mpeg2dec/mpeg2dec.c
src/gdcmmpeg2/src/mpeg2dec/subspic.c

index c47c9020bdd389c180544ae321f34d9f45b38423..209013d69ef5b9cc0f371b98f32f293f406f5381 100644 (file)
@@ -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(); 
index 67bb555dfce773a5018293a69c0e142ae377e96e..fbe238b64ce4474b05ac6f72980d200b5719fa3d 100644 (file)
@@ -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<Coded_Picture_Height; line++)