summaryrefslogtreecommitdiff
path: root/libavcodec/flashsv.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-06-30 01:00:30 +0200
committerDiego Biurrun <diego@biurrun.de>2011-07-06 13:21:26 +0200
commit39884ab0356677c1673da1ebc3d906137cdeb8d2 (patch)
tree287b69b636776589a633796e8d7a172e4e2690f3 /libavcodec/flashsv.c
parentdbf5b95d35043ae3a24024d1db44d51bfa218704 (diff)
flashsv: simplify condition
Diffstat (limited to 'libavcodec/flashsv.c')
-rw-r--r--libavcodec/flashsv.c5
1 files changed, 2 insertions, 3 deletions
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) {