diff options
author | Eduard Hasenleithner <ehasenle@users.sourceforge.net> | 2001-08-05 00:59:50 +0000 |
---|---|---|
committer | Eduard Hasenleithner <ehasenle@users.sourceforge.net> | 2001-08-05 00:59:50 +0000 |
commit | 6765a1f8c70ab83b4aedae8b8cf381fb7507c408 (patch) | |
tree | 438cba0663887969be52d3c51bafabe0d57f5650 /src/libspudec/spu.c | |
parent | 064f7ccd126415f062676ec4ccc9efdba8eff154 (diff) | |
download | xine-lib-6765a1f8c70ab83b4aedae8b8cf381fb7507c408.tar.gz xine-lib-6765a1f8c70ab83b4aedae8b8cf381fb7507c408.tar.bz2 |
Enabled CLUT palette transfer from the input plugin
to the libspudec. Fixed palette idx order.
CVS patchset: 385
CVS date: 2001/08/05 00:59:50
Diffstat (limited to 'src/libspudec/spu.c')
-rw-r--r-- | src/libspudec/spu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libspudec/spu.c b/src/libspudec/spu.c index b17cddc00..f28e74884 100644 --- a/src/libspudec/spu.c +++ b/src/libspudec/spu.c @@ -257,10 +257,10 @@ int spuParseHdr (vo_overlay_t *spu, uint8_t *pkt_data, u_int pkt_len) case CMD_SPU_SET_PALETTE: { /* CLUT */ spu_clut_t *clut = (spu_clut_t *) &buf[i+1]; - spu->clut[0] = clut->entry0; - spu->clut[1] = clut->entry1; - spu->clut[2] = clut->entry2; - spu->clut[3] = clut->entry3; + spu->clut[3] = clut->entry0; + spu->clut[2] = clut->entry1; + spu->clut[1] = clut->entry2; + spu->clut[0] = clut->entry3; LOG (LOG_DEBUG, "\tclut [%d %d %d %d]", spu->clut[0], spu->clut[1], spu->clut[2], spu->clut[3]); i += 3; |