# HG changeset patch # User atmos4 # Date 1020194434 0 # Node ID ab2cd00a0a52be670ea83d371bcdc68a98d90711 # Parent 568a56e40a3f78485bc312f1a76eb671a0653605 Suggested fix by Arne Driescher diff -r 568a56e40a3f -r ab2cd00a0a52 spudec.c --- 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);