# HG changeset patch # User cehoyos # Date 1211613552 0 # Node ID c2a365612e805469220f7a1d11ffbf9da7b49c7d # Parent 4346441afca69882625f2cd3a7e2ffe025324d08 Fix compilation for buggy icc. diff -r 4346441afca6 -r c2a365612e80 ffv1.c --- a/ffv1.c Fri May 23 03:10:27 2008 +0000 +++ b/ffv1.c Sat May 24 07:19:12 2008 +0000 @@ -768,7 +768,9 @@ static void decode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){ int x, y; int_fast16_t sample_buffer[2][w+6]; - int_fast16_t *sample[2]= {sample_buffer[0]+3, sample_buffer[1]+3}; + int_fast16_t *sample[2]; + sample[0]=sample_buffer[0]+3; + sample[1]=sample_buffer[1]+3; s->run_index=0; @@ -795,10 +797,11 @@ static void decode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h, int stride){ int x, y, p; int_fast16_t sample_buffer[3][2][w+6]; - int_fast16_t *sample[3][2]= { - {sample_buffer[0][0]+3, sample_buffer[0][1]+3}, - {sample_buffer[1][0]+3, sample_buffer[1][1]+3}, - {sample_buffer[2][0]+3, sample_buffer[2][1]+3}}; + int_fast16_t *sample[3][2]; + for(x=0; x<3; x++){ + sample[x][0] = sample_buffer[x][0]+3; + sample[x][1] = sample_buffer[x][1]+3; + } s->run_index=0;