diff decoder.c @ 6:5f319e02e333 src

Some cleaning up. changed exit(1) to assert(0) so they actually get seen by the user so that it helps developers more.
author jcdutton
date Sat, 06 Apr 2002 18:31:50 +0000
parents 3ddf0eaece51
children 6f0fb88d1463
line wrap: on
line diff
--- a/decoder.c	Tue Apr 02 22:25:21 2002 +0000
+++ b/decoder.c	Sat Apr 06 18:31:50 2002 +0000
@@ -30,6 +30,7 @@
 #include <inttypes.h>
 #include <string.h>  /* For memset */
 #include <dvdread/ifo_types.h> /* vm_cmd_t */
+#include <assert.h>
 #include "vmcmd.h"
 #include "decoder.h"
 
@@ -349,7 +350,7 @@
       data2 = bits(5, 4, 4);
       if(bits(5, 0, 1)) {
 	fprintf(stderr, "Detected SetGPRMMD Counter!! This is unsupported.\n");
-	/* exit(-1); */
+	assert(0);
       } else {
 	;
       }
@@ -459,7 +460,7 @@
       res = eval_special_instruction(cond);
       if(res == -1) {
 	fprintf(stderr, "Unknown Instruction!\n");
-	/* exit(0); */
+	assert(0);
       }
       break;
     case 1: /*  Link/jump instructions */