Skip to content
Snippets Groups Projects
Commit 5efa5103 authored by Paul B Mahol's avatar Paul B Mahol
Browse files

sgidec: simplify return path


Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent e8023dba
No related branches found
No related tags found
No related merge requests found
......@@ -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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment