]> Creatis software - gdcm.git/blobdiff - src/gdcmmpeg2/src/mpeg2dec/subspic.c
Oops. I forgot this one
[gdcm.git] / src / gdcmmpeg2 / src / mpeg2dec / subspic.c
index 67bb555dfce773a5018293a69c0e142ae377e96e..30ae35e9fa0a0d93018c175537b03b54e69bac57 100644 (file)
@@ -260,6 +260,7 @@ int Height;
     return(-1);
   }
 
+  abort();
   Bytes_Read = read(Infile, Frame, Size);
   
   if(Bytes_Read!=Size)
@@ -288,6 +289,7 @@ int framenum;
   FILE *fd;
   int line;
   int size, offset;
+  abort();
 
 
   if (!(fd = fopen(filename,"rb")))
@@ -320,7 +322,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++)