mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
sgidec: simplify return path
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
e8023dbaf0
commit
5efa5103b0
@ -223,13 +223,11 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
} else {
|
} else {
|
||||||
ret = read_uncompressed_sgi(out_buf, s);
|
ret = read_uncompressed_sgi(out_buf, s);
|
||||||
}
|
}
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
if (ret == 0) {
|
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
return avpkt->size;
|
return avpkt->size;
|
||||||
} else {
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AVCodec ff_sgi_decoder = {
|
AVCodec ff_sgi_decoder = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user