changeset 400:ae91bfef2a94

fixed debug printfs
author arpi_esp
date Sat, 14 Apr 2001 03:13:48 +0000
parents 33115689181a
children 835fac6382be
files parse_es.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/parse_es.c	Sat Apr 14 03:12:48 2001 +0000
+++ b/parse_es.c	Sat Apr 14 03:13:48 2001 +0000
@@ -37,7 +37,7 @@
     c=demux_getc(ds);if(c<0){ return 0;} // EOF
     videobuf_code[3]=c;
   }
-  if(verbose>=2) if(skipped) printf("videobuf: %d bytes skipped\n",skipped);
+  if(verbose>=2) if(skipped) printf("videobuf: %d bytes skipped  (next: 0x1%02X)\n",skipped,videobuf_code[3]);
   return 0x100|videobuf_code[3];
 }
 
@@ -81,7 +81,7 @@
   
   videobuf_len-=4;
 
-  if(verbose>=2) printf("videobuf: packet 0x1%02X  len=%d\n",videobuffer[3],videobuf_len);
+  if(verbose>=2) printf("videobuf: packet 0x1%02X  len=%d  (total=%d)\n",videobuffer[packet_start+3],videobuf_len-packet_start,videobuf_len);
 
   // Save next packet code:
   videobuf_code[0]=videobuffer[videobuf_len];