aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/gifdec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-10-22 17:25:16 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-10-22 17:25:16 +0000
commit47babca8396af9e765d9f29b1e8586603b0f1ebd (patch)
tree854a9c17f0e2d19acdf7756eed2a57a0e9330ddf /libavcodec/gifdec.c
parent20da94e8c5f58696f9461da5c3778fae123e92a6 (diff)
downloadffmpeg-47babca8396af9e765d9f29b1e8586603b0f1ebd.tar.gz
indention
Originally committed as revision 6768 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r--libavcodec/gifdec.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 6d794bf4fe..23d023f432 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -251,19 +251,19 @@ static int gif_read_image(GifState *s)
return -EINVAL;
/* build the palette */
- n = (1 << bits_per_pixel);
- spal = palette;
- for(i = 0; i < n; i++) {
- s->image_palette[i] = (0xff << 24) |
- (spal[0] << 16) | (spal[1] << 8) | (spal[2]);
- spal += 3;
- }
- for(; i < 256; i++)
- s->image_palette[i] = (0xff << 24);
- /* handle transparency */
- if (s->transparent_color_index >= 0)
- s->image_palette[s->transparent_color_index] = 0;
- line = NULL;
+ n = (1 << bits_per_pixel);
+ spal = palette;
+ for(i = 0; i < n; i++) {
+ s->image_palette[i] = (0xff << 24) |
+ (spal[0] << 16) | (spal[1] << 8) | (spal[2]);
+ spal += 3;
+ }
+ for(; i < 256; i++)
+ s->image_palette[i] = (0xff << 24);
+ /* handle transparency */
+ if (s->transparent_color_index >= 0)
+ s->image_palette[s->transparent_color_index] = 0;
+ line = NULL;
/* now get the image data */
code_size = bytestream_get_byte(&s->bytestream);
@@ -276,7 +276,7 @@ static int gif_read_image(GifState *s)
pass = 0;
y1 = 0;
for (y = 0; y < height; y++) {
- GLZWDecode(s, ptr, width);
+ GLZWDecode(s, ptr, width);
if (is_interleaved) {
switch(pass) {
default: