[Mplayer-cvslog] CVS: main vobsub.c,1.15,1.16
Atmosfear
atmos4 at mplayerhq.hu
Sun Jul 28 14:01:35 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv25849
Modified Files:
vobsub.c
Log Message:
Make vobsub palette generation compatible with windows vobsub.
Index: vobsub.c
===================================================================
RCS file: /cvsroot/mplayer/main/vobsub.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- vobsub.c 23 Jul 2002 20:19:42 -0000 1.15
+++ vobsub.c 28 Jul 2002 12:01:32 -0000 1.16
@@ -1017,7 +1017,8 @@
for (i = 0; i < 16; ++i) {
if (i)
putc(',', me->fidx);
- fprintf(me->fidx, " %06x", palette[i] & 0x00ffffff);
+ fprintf(me->fidx, " %02x%02x%02x", palette[i]>>16 & 0x000000ff,
+ palette[i]>>16 & 0x000000ff, palette[i]>>16 & 0x000000ff);
}
putc('\n', me->fidx);
}
More information about the MPlayer-cvslog
mailing list