]> Creatis software - gdcm.git/blobdiff - src/gdcmmpeg2/src/mpeg2dec/spatscal.c
UserDefinedFileIdentifier is now more human readable
[gdcm.git] / src / gdcmmpeg2 / src / mpeg2dec / spatscal.c
index 55d26f24a7cb466238278408098f76abe00a61cc..08e78cdf8c5eed73009c3609756e41ee155e49dc 100644 (file)
@@ -1,5 +1,33 @@
+/* spatscal.c, ????                                                         */
 
-#include <stdio.h>
+/* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */
+
+/*
+ * Disclaimer of Warranty
+ *
+ * These software programs are available to the user without any license fee or
+ * royalty on an "as is" basis.  The MPEG Software Simulation Group disclaims
+ * any and all warranties, whether express, implied, or statuary, including any
+ * implied warranties or merchantability or of fitness for a particular
+ * purpose.  In no event shall the copyright-holder be liable for any
+ * incidental, punitive, or consequential damages of any kind whatsoever
+ * arising from the use of these programs.
+ *
+ * This disclaimer of warranty extends to the user of these programs and user's
+ * customers, employees, agents, transferees, successors, and assigns.
+ *
+ * The MPEG Software Simulation Group does not represent or warrant that the
+ * programs furnished hereunder are free of infringement of any third-party
+ * patents.
+ *
+ * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,
+ * are subject to royalty fees to patent holders.  Many of these patents are
+ * general enough such that they are unavoidable regardless of implementation
+ * design.
+ *
+ */
+
+#include <string.h> /* for strcat */
 #include "config.h"
 #include "global.h"
 
@@ -92,9 +120,9 @@ static void Read_Lower_Layer_Component_Framewise(comp,lw,lh)
 #ifdef VERBOSE
   if (Verbose_Flag>1)
     printf("reading %s\n",fname);
-#endif VERBOSE
+#endif /* VERBOSE */
   fd=fopen(fname,"rb");
-  if (fd==NULL) exit(-1);
+  if (fd==NULL) my_exit(-1);
   for (j=0; j<lh; j++) {
      for (i=0; i<lw; i++)
        llframe0[comp][lw*j+i]=getc(fd);
@@ -123,9 +151,9 @@ static void Read_Lower_Layer_Component_Fieldwise(comp,lw,lh)
 #ifdef VERBOSE
   if (Verbose_Flag>1)
     printf("reading %s\n",fname);
-#endif VERBOSE
+#endif /* VERBOSE */
   fd=fopen(fname,"rb");
-  if (fd==NULL) exit(-1);
+  if (fd==NULL) my_exit(-1);
   for (j=0; j<lh; j+=lower_layer_progressive_frame?1:2)
     for (i=0; i<lw; i++)
       llframe0[comp][lw*j+i]=getc(fd);
@@ -137,9 +165,9 @@ static void Read_Lower_Layer_Component_Fieldwise(comp,lw,lh)
 #ifdef VERBOSE
     if (Verbose_Flag>1)
       printf("reading %s\n",fname);
-#endif VERBOSE
+#endif /* VERBOSE */
     fd=fopen(fname,"rb");
-    if (fd==NULL) exit(-1);
+    if (fd==NULL) my_exit(-1);
     for (j=1; j<lh; j+=2)
       for (i=0; i<lw; i++)
         llframe1[comp][lw*j+i]=getc(fd);