mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-02 10:41:16 +00:00
flashsv: simplify condition
This commit is contained in:
parent
dbf5b95d35
commit
39884ab035
@ -187,9 +187,8 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size == 0) {
|
/* skip unchanged blocks, which have size 0 */
|
||||||
/* no change, don't do anything */
|
if (size) {
|
||||||
} else {
|
|
||||||
/* decompress block */
|
/* decompress block */
|
||||||
int ret = inflateReset(&s->zstream);
|
int ret = inflateReset(&s->zstream);
|
||||||
if (ret != Z_OK) {
|
if (ret != Z_OK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user