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

Rich Felker dalias at aerifal.cx
Wed Apr 11 07:42:47 CEST 2007


On Mon, Apr 09, 2007 at 10:43:48PM +0200, rtogni wrote:
> Author: rtogni
> Date: Mon Apr  9 22:43:48 2007
> New Revision: 22960
> 
> Modified:
>    trunk/stream/realrtsp/real.c
> 
> Log:
> 10000000l learn to count
> 
> 
> Modified: trunk/stream/realrtsp/real.c
> ==============================================================================
> --- trunk/stream/realrtsp/real.c	(original)
> +++ trunk/stream/realrtsp/real.c	Mon Apr  9 22:43:48 2007
> @@ -49,7 +49,7 @@
>  #define LOG
>  */
>  
> -#define XOR_TABLE_SIZE 45
> +#define XOR_TABLE_SIZE 37
>  
>  static const unsigned char xor_table[XOR_TABLE_SIZE] = {
>      0x05, 0x18, 0x74, 0xd0, 0x0d, 0x09, 0x02, 0x53,

Is there a reason this exists at all??
Just declaring it as xor_table[] and letting the compiler decide on
the size is much nicer IMO. And if you need to use the size later in
code, you can just write sizeof xor_table.

Rich



More information about the MPlayer-cvslog mailing list