diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index 837a92243c..37bff0a9ea 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -187,9 +187,8 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data, return AVERROR_INVALIDDATA; } - if (size == 0) { - /* no change, don't do anything */ - } else { + /* skip unchanged blocks, which have size 0 */ + if (size) { /* decompress block */ int ret = inflateReset(&s->zstream); if (ret != Z_OK) {