[FFmpeg-cvslog] sgidec: remove redundant argument from read_uncompressed_sgi()
Paul B Mahol
git at videolan.org
Mon Jul 9 01:44:12 CEST 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jul 8 23:28:16 2012 +0000| [0f65693529decc470e3f01cb950b1864ea982c06] | committer: Paul B Mahol
sgidec: remove redundant argument from read_uncompressed_sgi()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0f65693529decc470e3f01cb950b1864ea982c06
---
libavcodec/sgidec.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c
index f11efd0..ee09d69 100644
--- a/libavcodec/sgidec.c
+++ b/libavcodec/sgidec.c
@@ -113,16 +113,15 @@ static int read_rle_sgi(uint8_t *out_buf, SgiState *s)
/**
* Read an uncompressed SGI image.
* @param out_buf output buffer
- * @param out_end end ofoutput buffer
* @param s the current image state
* @return 0 if read success, otherwise return -1.
*/
-static int read_uncompressed_sgi(unsigned char* out_buf, uint8_t* out_end,
- 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;
GetByteContext gp[4];
+ uint8_t *out_end;
/* Test buffer size. */
if (offset * s->depth > bytestream2_get_bytes_left(&s->g))
@@ -228,7 +227,7 @@ static int decode_frame(AVCodecContext *avctx,
if (rle) {
ret = read_rle_sgi(out_end, s);
} else {
- ret = read_uncompressed_sgi(out_buf, out_end, s);
+ ret = read_uncompressed_sgi(out_buf, s);
}
if (ret == 0) {
More information about the ffmpeg-cvslog
mailing list