[XviD-devel] ia64-Patch

Stephan Krause xvid-devel@xvid.org
Sun, 26 Jan 2003 12:35:03 +0100


suxen_drol wrote:

> i have applied the patch. but i wonder why it was crashing, because most
> (if not all) of the varibles are used to index an array (so these really
> arent pointers, just indexs)
>
> 	ie. level = some_table[i][j][k];
>
> currenlty ptr_t is defined as an unsinged integer, but i noticed a
> warning in mbcoding.c when we do -level (where level is a ptr_t).

It was a line exactly like this, (max_level[intra][last][run_esc]), but 
run_esc had a negative value (-1, to be exact), or (because it was uint32) a 
value of 2^32-2. On x86, this is much the same, on ia64 it tries to reference 
memory at max_level+4GB...

Stephan

-- 
Sig fault. (core dumped)