]> Creatis software - gdcm.git/blobdiff - src/gdcmmpeg2/src/mpeg2dec/mpeg2dec.c
Oops. I forgot this one
[gdcm.git] / src / gdcmmpeg2 / src / mpeg2dec / mpeg2dec.c
index ea7d55160b8a6fbb00884bf1ed00b33e53fd1ea8..f5f7dc43f1740c6cc6b6a171865bf0ad561ea960 100644 (file)
@@ -77,6 +77,7 @@ int my_close(int infile)
 
 
 
+#ifdef GDCM_BUILD_MPEG2DEC
 int main(argc,argv)
 int argc;
 char *argv[];
@@ -100,7 +101,7 @@ char *argv[];
 
   /* open MPEG base layer bitstream file(s) */
   /* NOTE: this is either a base layer stream or a spatial enhancement stream */
-//  if ((base.Infile=open(Main_Bitstream_Filename,O_RDONLY|O_BINARY))<0)
+/*  if ((base.Infile=open(Main_Bitstream_Filename,O_RDONLY|O_BINARY))<0) */
   base.Infile = ld->open_stream(Main_Bitstream_Filename);
   if( base.Infile < 0 )
   {
@@ -137,14 +138,14 @@ char *argv[];
       break;
     }
 
-    //lseek(base.Infile, 0l, SEEK_SET);
+    /*lseek(base.Infile, 0l, SEEK_SET);*/
     ld->seek_stream(base.Infile,0l,SEEK_SET);
     Initialize_Buffer(); 
   }
 
   if(base.Infile!=0)
   {
-    //lseek(base.Infile, 0l, SEEK_SET);
+    /*lseek(base.Infile, 0l, SEEK_SET);*/
     ld->seek_stream(base.Infile,0l,SEEK_SET);
   }
 
@@ -154,7 +155,7 @@ char *argv[];
   {
     ld = &enhan; /* select enhancement layer context */
 
-    //if ((enhan.Infile = open(Enhancement_Layer_Bitstream_Filename,O_RDONLY|O_BINARY))<0)
+    /*if ((enhan.Infile = open(Enhancement_Layer_Bitstream_Filename,O_RDONLY|O_BINARY))<0)*/
     enhan.Infile = ld->open_stream(Enhancement_Layer_Bitstream_Filename);
     if (enhan.Infile<0)
     {
@@ -172,17 +173,18 @@ char *argv[];
 
   ret = Decode_Bitstream();
 
-  //close(base.Infile);
+  /*close(base.Infile);*/
   ld->close_stream(base.Infile);
 
   if (Two_Streams)
-    //close(enhan.Infile);
+    /*close(enhan.Infile);*/
     ld->close_stream(enhan.Infile);
 
   return ret;
 }
+#endif /*GDCM_BUILD_MPEG2DEC*/
 
-/* IMPLEMENTAION specific rouintes */
+/* IMPLEMENTATION specific routines */
 static void Initialize_Decoder()
 {
   int i;