[FFmpeg-cvslog] flashsv: simplify condition

Diego Biurrun git at videolan.org
Thu Jul 7 00:15:07 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jun 30 01:00:30 2011 +0200| [39884ab0356677c1673da1ebc3d906137cdeb8d2] | committer: Diego Biurrun

flashsv: simplify condition

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=39884ab0356677c1673da1ebc3d906137cdeb8d2
---

 libavcodec/flashsv.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index 837a922..37bff0a 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) {



More information about the ffmpeg-cvslog mailing list