summaryrefslogtreecommitdiff
path: root/libavcodec/sgidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-01 03:29:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-01 03:29:29 +0200
commitbe4ae3f532d13deb0916f950d3bbc60c0f04fd85 (patch)
treebfd1dc46f68684bc92d3a6c2af93f5ee6307c044 /libavcodec/sgidec.c
parent0054bbd6648318a2b1e6dd66adb38f5d3acb922d (diff)
parenta7dbfcf6cb6ab8a8981d74332fd02fb90360d22f (diff)
Merge commit 'a7dbfcf6cb6ab8a8981d74332fd02fb90360d22f'
* commit 'a7dbfcf6cb6ab8a8981d74332fd02fb90360d22f': sgi: K&R formatting cosmetics Conflicts: libavcodec/sgidec.c libavcodec/sgienc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/sgidec.c')
-rw-r--r--libavcodec/sgidec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c
index 3ce0f7a85c..9bad0e3fcd 100644
--- a/libavcodec/sgidec.c
+++ b/libavcodec/sgidec.c
@@ -97,7 +97,7 @@ static int read_rle_sgi(uint8_t *out_buf, SgiState *s)
unsigned int start_offset;
/* size of RLE offset and length tables */
- if (len * 2 > bytestream2_get_bytes_left(&s->g)) {
+ if (len * 2 > bytestream2_get_bytes_left(&s->g)) {
return AVERROR_INVALIDDATA;
}
@@ -122,7 +122,8 @@ static int read_rle_sgi(uint8_t *out_buf, SgiState *s)
* @param s the current image state
* @return 0 if read success, else return error code.
*/
-static int read_uncompressed_sgi(unsigned char* out_buf, SgiState *s)
+static int read_uncompressed_sgi(unsigned char *out_buf,
+ SgiState *s)
{
int x, y, z;
unsigned int offset = s->height * s->width * s->bytes_per_channel;