[MPlayer-users] DVDNAV problem: subtitles

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Nov 24 08:01:53 CET 2009


On Sun, Nov 22, 2009 at 01:35:43PM -0200, Dâniel Fraga wrote:
> On Wed, 11 Nov 2009 12:24:01 +0100
> Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
> 
> > That works for me now, too.
> 
> 	Reimar, I have a dvd here ("Red") that will allow me to select
> only the "pt" subtitle using dvdnav:// and both ("pt" and "en") using
> dvd://.

Fixed.

> 	But no subtitle are shown even when selected.

The subtitles are 100% transparent, there's something wrong with the palette
as you can see when you apply this patch:
Index: spudec.c
===================================================================
--- spudec.c	(revision 29963)
+++ spudec.c	(working copy)
@@ -292,8 +292,8 @@
     if (len > this->width - x || len == 0)
       len = this->width - x;
     /* FIXME have to use palette and alpha map*/
-    memset(this->image + y * this->stride + x, cmap[color], len);
-    memset(this->aimage + y * this->stride + x, alpha[color], len);
+    memset(this->image + y * this->stride + x, 0xff, len);
+    memset(this->aimage + y * this->stride + x, color == 3 ? 0 : 0x20, len);
     x += len;
     if (x >= this->width) {
       next_line(packet);


More information about the MPlayer-users mailing list