diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-07-27 01:09:06 +0400 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-07-27 16:00:25 +0400 |
commit | 5efa5103b0e7b5c63d36c4df224c2bdeff276413 (patch) | |
tree | 1b1b1df8592843d8166bc09b5355a8eca3f38a96 /libavcodec | |
parent | e8023dbaf0db494f9676a251cb05792dbf3758be (diff) |
sgidec: simplify return path
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/sgidec.c | 10 |
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 = { |