Commit 5efa5103 authored by Paul B Mahol's avatar Paul B Mahol

sgidec: simplify return path

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent e8023dba
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment