Browse Source

flashsv: simplify condition

tags/n0.9
Diego Biurrun 14 years ago
parent
commit
39884ab035
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      libavcodec/flashsv.c

+ 2
- 3
libavcodec/flashsv.c View File

@@ -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) {


Loading…
Cancel
Save