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

Uoti Urpala uoti.urpala at pp1.inet.fi
Mon Apr 9 22:25:53 CEST 2007


On Mon, 2007-04-09 at 21:30 +0200, rtogni wrote:
> +#define XOR_TABLE_SIZE 45
> +
> +static const unsigned char xor_table[XOR_TABLE_SIZE] = {

> +    for (i=0; i<XOR_TABLE_SIZE; i++)
>        ptr[i] = ptr[i] ^ xor_table[i];

Why the explicit size, and why is it larger than the number of nonzero
entries when it's only used for xor?

Why not just

static const unsigned char xor_table[] = {   ...

and

for (i=0; i < sizeof(xor_table); i++)




More information about the MPlayer-cvslog mailing list