summaryrefslogtreecommitdiff
path: root/libavcodec/sgienc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-10-01 09:30:08 +0000
committerDiego Biurrun <diego@biurrun.de>2009-10-01 09:30:08 +0000
commit2499f4e09e1b23fec7891697cce2656ce3915767 (patch)
tree401a94b79d11d636bdd88342fa6d421ee4ae5b0d /libavcodec/sgienc.c
parent081c14a3180f90acebba4e50e564db7bfd86cd88 (diff)
Fix wrongly indented block.
Originally committed as revision 20117 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/sgienc.c')
-rw-r--r--libavcodec/sgienc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c
index d37beff109..7c2bcae528 100644
--- a/libavcodec/sgienc.c
+++ b/libavcodec/sgienc.c
@@ -142,18 +142,18 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
}
av_free(encode_buf);
- } else {
- for (z = 0; z < depth; z++) {
- in_buf = p->data[0] + p->linesize[0] * (height - 1) + z;
+ } else {
+ for (z = 0; z < depth; z++) {
+ in_buf = p->data[0] + p->linesize[0] * (height - 1) + z;
- for (y = 0; y < height; y++) {
- for (x = 0; x < width * depth; x += depth)
- bytestream_put_byte(&buf, in_buf[x]);
+ for (y = 0; y < height; y++) {
+ for (x = 0; x < width * depth; x += depth)
+ bytestream_put_byte(&buf, in_buf[x]);
- in_buf -= p->linesize[0];
- }
+ in_buf -= p->linesize[0];
}
}
+ }
/* total length */
return buf - orig_buf;