changeset 5917:ab2cd00a0a52

Suggested fix by Arne Driescher <driescher at mpi-magdeburg.mpg.de>
author atmos4
date Tue, 30 Apr 2002 19:20:34 +0000
parents 568a56e40a3f
children dca3016882cf
files spudec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/spudec.c	Tue Apr 30 17:55:06 2002 +0000
+++ b/spudec.c	Tue Apr 30 19:20:34 2002 +0000
@@ -378,8 +378,8 @@
 #if 1
   // check if we have a complete packet (unfortunatelly packet_size is bad
   // for some disks)
-//  if (spu->packet_offset == spu->packet_size)
-  { unsigned int x=0,y;
+  if (spu->packet_offset == spu->packet_size){
+    unsigned int x=0,y;
     while(x+4<=spu->packet_offset){
       y=get_be16(spu->packet+x+2); // next control pointer
       mp_msg(MSGT_SPUDEC,MSGL_DBG2,"SPUtest: x=%d y=%d off=%d size=%d\n",x,y,spu->packet_offset,spu->packet_size);