[MPlayer-dev-eng] [PATCH] spudec enters indefinite loop with 'His and her circumstances' DVD 1
Tobias Diedrich
td at sim.uni-hannover.de
Wed Jan 29 02:33:51 CET 2003
The "His and her Circumstances" DVD has rather fancy subtitles, you can
choose between 3 english subtitle tracks, 'normal', 'explanations' and 'bot=
h'.
spudec doesn't like at least the last one, the cause probably being a
mastering error. The error happens in the first episode, right at the
beginning.
I have attached a patch, which fixes the problem for me, but is probably
not the solution to the real problem, so if someone with better
knowledge of spudec.c could have a look at karekano_broken_sid_2.mpg...
--
Tobias PGP: 0x9AC7E0BC
This mail is made of 100% recycled bits
-------------- next part --------------
Index: spudec.c
===================================================================
RCS file: /cvsroot/mplayer/main/spudec.c,v
retrieving revision 1.38
diff -u -r1.38 spudec.c
--- spudec.c 24 Jan 2003 10:24:07 -0000 1.38
+++ spudec.c 29 Jan 2003 00:37:17 -0000
@@ -505,7 +505,10 @@
// Continue current fragment
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;
+ if (last_packet->offset < last_packet->size)
+ memcpy(last_packet->data + last_packet->offset, packet_bytes,
+ last_packet->size - last_packet->offset);
+ last_packet->offset = last_packet->size;
} else {
memcpy(last_packet->data + last_packet->offset, packet_bytes, len);
last_packet->offset += len;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030129/fade9cae/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list