Commit 4c949c31 authored by Loren Merritt's avatar Loren Merritt

don't assume int is exactly 4 bytes


git-svn-id: svn://svn.videolan.org/x264/trunk@619 df754926-b1dd-0310-bc7b-ec298dee348c
parent cf9e6c5c
......@@ -58,8 +58,8 @@ void x264_denoise_dct( x264_t *h, int16_t *dct );
static inline int array_non_zero_int( void *v, int i_count )
{
int i;
int *x = v;
i_count >>= 2;
uint32_t *x = v;
i_count /= sizeof(uint32_t);
for( i = 0; i < i_count; i++ )
if( x[i] ) return 1;
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment