1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

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
This commit is contained in:
atmos4 2002-04-30 19:20:34 +00:00
parent eebae88d07
commit 1220837b18

View File

@ -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);