comparison iff.c @ 11726:7c35c611faa4 libavcodec

Reindent after r23124. Patch by Sebastian Vater <cdgs basty googlemail com>.
author rbultje
date Thu, 13 May 2010 19:18:54 +0000
parents e9537b2d70ce
children 9bfef228a117
comparison
equal deleted inserted replaced
11725:e9537b2d70ce 11726:7c35c611faa4
129 129
130 count = 1 << avctx->bits_per_coded_sample; 130 count = 1 << avctx->bits_per_coded_sample;
131 // If extradata is smaller than actually needed, fill the remaining with black. 131 // If extradata is smaller than actually needed, fill the remaining with black.
132 count = FFMIN(avctx->extradata_size / 3, count); 132 count = FFMIN(avctx->extradata_size / 3, count);
133 if (count) { 133 if (count) {
134 for (i=0; i < count; i++) { 134 for (i=0; i < count; i++) {
135 pal[i] = 0xFF000000 | AV_RB24( avctx->extradata + i*3 ); 135 pal[i] = 0xFF000000 | AV_RB24( avctx->extradata + i*3 );
136 } 136 }
137 } else { // Create gray-scale color palette for bps < 8 137 } else { // Create gray-scale color palette for bps < 8
138 count = 1 << avctx->bits_per_coded_sample; 138 count = 1 << avctx->bits_per_coded_sample;
139 139
140 for (i=0; i < count; i++) { 140 for (i=0; i < count; i++) {
141 pal[i] = 0xFF000000 | gray2rgb((i * 255) >> avctx->bits_per_coded_sample); 141 pal[i] = 0xFF000000 | gray2rgb((i * 255) >> avctx->bits_per_coded_sample);