[MPlayer-cvslog] r22958 - trunk/stream/realrtsp/real.c

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Apr 9 22:01:51 CEST 2007


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 ;-)
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)...

Greetings,
Reimar Döffinger



More information about the MPlayer-cvslog mailing list