[MPlayer-cvslog] r22958 - trunk/stream/realrtsp/real.c
Roberto Togni
rxt at rtogni.it
Mon Apr 9 22:32:47 CEST 2007
On Mon, 9 Apr 2007 22:01:51 +0200
Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
> Hello,
> On Mon, Apr 09, 2007 at 09:30:33PM +0200, rtogni wrote:
> > /* xor challenge bytewise with xor_table */
> > - for (i=0; i<table_len; i++)
> > + for (i=0; i<XOR_TABLE_SIZE; i++)
> > ptr[i] = ptr[i] ^ xor_table[i];
>
> ptr[i] ^= xor_table[i];
>
> would be simpler, too, if you care ;-)
Yes, that (and others) are planned for later cleanup patch.
> I guess speed is not relevant, but if it was the xor also could be done
> on uint32_t instead of bytewise (and bytewise doesn't have endian issues)...
>
It looks simpler this way, and no endianess or alignment problems.
Ciao,
Roberto
More information about the MPlayer-cvslog
mailing list