summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-30 19:20:34 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-30 19:20:34 +0000
commit1220837b187f78c85fe658b1d341ec400a221d41 (patch)
tree033efa3cad57d72e51a051ed73fbefc1d0985496 /spudec.c
parenteebae88d07530104fc5643163aa7005a173e56ba (diff)
downloadmpv-1220837b187f78c85fe658b1d341ec400a221d41.tar.bz2
mpv-1220837b187f78c85fe658b1d341ec400a221d41.tar.xz
Suggested fix by
Arne Driescher <driescher at mpi-magdeburg.mpg.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5918 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r--spudec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spudec.c b/spudec.c
index 91089dae9c..58cfba0443 100644
--- a/spudec.c
+++ b/spudec.c
@@ -378,8 +378,8 @@ void spudec_assemble(void *this, unsigned char *packet, unsigned int len, unsign
#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);