+/* spatscal.c, ???? */
-#include <stdio.h>
-#include <string.h> // for strcat
-#include <stdlib.h> // for exit
+/* 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"
printf("reading %s\n",fname);
#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);
printf("reading %s\n",fname);
#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);
printf("reading %s\n",fname);
#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);