Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol authored on 2013/07/27 06:09:06... | ... |
@@ -223,13 +223,11 @@ static int decode_frame(AVCodecContext *avctx, |
223 | 223 |
} else { |
224 | 224 |
ret = read_uncompressed_sgi(out_buf, s); |
225 | 225 |
} |
226 |
- |
|
227 |
- if (ret == 0) { |
|
228 |
- *got_frame = 1; |
|
229 |
- return avpkt->size; |
|
230 |
- } else { |
|
226 |
+ if (ret) |
|
231 | 227 |
return ret; |
232 |
- } |
|
228 |
+ |
|
229 |
+ *got_frame = 1; |
|
230 |
+ return avpkt->size; |
|
233 | 231 |
} |
234 | 232 |
|
235 | 233 |
AVCodec ff_sgi_decoder = { |