Module: libav Branch: master Commit: 39884ab0356677c1673da1ebc3d906137cdeb8d2
Author: Diego Biurrun <[email protected]> Committer: Diego Biurrun <[email protected]> Date: Thu Jun 30 01:00:30 2011 +0200 flashsv: simplify condition --- 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) { _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
