Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-27 01:09:06 +0400
committerPaul B Mahol <onemda@gmail.com>2013-07-27 16:00:25 +0400
commit5efa5103b0e7b5c63d36c4df224c2bdeff276413 (patch)
tree1b1b1df8592843d8166bc09b5355a8eca3f38a96 /libavcodec/sgidec.c
parente8023dbaf0db494f9676a251cb05792dbf3758be (diff)
sgidec: simplify return path
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/sgidec.c')
-rw-r--r--libavcodec/sgidec.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c
index e7f453bc17..c6e7508d50 100644
--- a/libavcodec/sgidec.c
+++ b/libavcodec/sgidec.c
@@ -223,13 +223,11 @@ static int decode_frame(AVCodecContext *avctx,
} else {
ret = read_uncompressed_sgi(out_buf, s);
}
-
- if (ret == 0) {
- *got_frame = 1;
- return avpkt->size;
- } else {
+ if (ret)
return ret;
- }
+
+ *got_frame = 1;
+ return avpkt->size;
}
AVCodec ff_sgi_decoder = {