]> git.sesse.net Git - ffmpeg/commitdiff
flashsv: simplify condition
authorDiego Biurrun <diego@biurrun.de>
Wed, 29 Jun 2011 23:00:30 +0000 (01:00 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 6 Jul 2011 11:21:26 +0000 (13:21 +0200)
libavcodec/flashsv.c

index 837a92243c49021d67659a5b06c8c7a53eef9dc9..37bff0a9ea5e7fe8042002c4ad83c13ac36e26ce 100644 (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) {