Commit 39884ab0 authored by Diego Biurrun's avatar Diego Biurrun

flashsv: simplify condition

parent dbf5b95d
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment