[FFmpeg-devel] [PATCH] dvb subtitle decoder doesn't set nb_colors correctly

Michael Niedermayer michaelni
Sun Nov 18 13:51:00 CET 2007


On Sun, Nov 18, 2007 at 02:35:44AM +0100, elupus wrote:
> Hi,
>
> As subject says, dvb subtitle decoder doesn't set nb_colors correctly in 
> the subtitle packet. it is hardcoded to 16, even thou the palette might 
> contain 256 or worse only 8.
>
> Joakim 

> Index: dvbsubdec.c
> ===================================================================
> --- dvbsubdec.c	(revision 10668)
> +++ dvbsubdec.c	(working copy)
> @@ -1304,7 +1304,7 @@
>         rect->y = display->y_pos;
>         rect->w = region->width;
>         rect->h = region->height;
> -        rect->nb_colors = 16;
> +        rect->nb_colors = (1 << region->depth);
>         rect->linesize = region->width;
>         clut = get_clut(ctx, region->clut);

patch looks mangled, i dont think that would apply ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071118/f04476a1/attachment.pgp>



More information about the ffmpeg-devel mailing list