# HG changeset patch # User diego # Date 1205007864 0 # Node ID e6995f3fbf7f9472fb8a4c8af141560384fee297 # Parent e0cd9697ac6dfa0a73ed2cff18350ce18a717c98 cosmetics: Normalize {} placement after for, while, if. diff -r e0cd9697ac6d -r e6995f3fbf7f snow.c --- a/snow.c Sat Mar 08 18:08:16 2008 +0000 +++ b/snow.c Sat Mar 08 20:24:24 2008 +0000 @@ -514,8 +514,7 @@ buf->line = av_mallocz (sizeof(IDWTELEM *) * line_count); buf->data_stack = av_malloc (sizeof(IDWTELEM *) * max_allocated_lines); - for (i = 0; i < max_allocated_lines; i++) - { + for(i = 0; i < max_allocated_lines; i++){ buf->data_stack[i] = av_malloc (sizeof(IDWTELEM) * line_width); } @@ -558,8 +557,7 @@ static void slice_buffer_flush(slice_buffer * buf) { int i; - for (i = 0; i < buf->line_count; i++) - { + for(i = 0; i < buf->line_count; i++){ if (buf->line[i]) slice_buffer_release(buf, i); } @@ -570,8 +568,7 @@ int i; slice_buffer_flush(buf); - for (i = buf->data_count - 1; i >= 0; i--) - { + for(i = buf->data_count - 1; i >= 0; i--){ av_freep(&buf->data_stack[i]); } av_freep(&buf->data_stack); @@ -1589,8 +1586,7 @@ memset(line, 0, b->width*sizeof(IDWTELEM)); v = b->x_coeff[new_index].coeff; x = b->x_coeff[new_index++].x; - while(x < w) - { + while(x < w){ register int t= ( (v>>1)*qmul + qadd)>>QEXPSHIFT; register int u= -(v&1); line[x] = (t^u) - u; @@ -2592,12 +2588,10 @@ return; if(add){ - for(y=block_w*mb_y; yline[y]; - for(x=0; x>= FRAC_BITS; @@ -2606,12 +2600,10 @@ } } }else{ - for(y=block_w*mb_y; yline[y]; - for(x=0; x input_picture.data[0]; uint8_t *dst= s->current_picture.data[0]; const int stride= s->current_picture.linesize[0];