Browse Source

Apply clut changes only to one table.

The specification does not allow multiple bits to be set,
but some encoders do it anyway.
Applying it only to the first seems to give better results.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
tags/n2.1
JULIAN GARDNER Reimar Döffinger 12 years ago
parent
commit
97ff584af4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/dvbsubdec.c

+ 2
- 2
libavcodec/dvbsubdec.c View File

@@ -1015,9 +1015,9 @@ static void dvbsub_parse_clut_segment(AVCodecContext *avctx,

if (depth & 0x80)
clut->clut4[entry_id] = RGBA(r,g,b,255 - alpha);
if (depth & 0x40)
else if (depth & 0x40)
clut->clut16[entry_id] = RGBA(r,g,b,255 - alpha);
if (depth & 0x20)
else if (depth & 0x20)
clut->clut256[entry_id] = RGBA(r,g,b,255 - alpha);
}
}


Loading…
Cancel
Save