[Mplayer-cvslog] CVS: main spudec.c,1.38,1.39

Tobias Diedrich CVS ranma at mplayerhq.hu
Sun Feb 16 02:23:26 CET 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv5009

Modified Files:
	spudec.c 
Log Message:
Fix "invalid fragment" handling.


Index: spudec.c
===================================================================
RCS file: /cvsroot/mplayer/main/spudec.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- spudec.c	24 Jan 2003 10:24:07 -0000	1.38
+++ spudec.c	16 Feb 2003 01:23:10 -0000	1.39
@@ -506,6 +506,7 @@
     if (last_packet->size < last_packet->offset + len){
       mp_msg(MSGT_SPUDEC,MSGL_WARN,"SPUasm: invalid fragment\n");
       last_packet->size = last_packet->offset = 0;
+      return;
     } else {
       memcpy(last_packet->data + last_packet->offset, packet_bytes, len);
       last_packet->offset += len;



More information about the MPlayer-cvslog mailing list