From: Yaowu Xu Date: Wed, 19 Dec 2018 18:48:37 +0000 (-0800) Subject: Correct condition for skip X-Git-Tag: v1.8.0~53^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=632ee6aa76df257a90430387eca6a6e79780491f;p=libvpx Correct condition for skip Do not skip without check when lossless is requested. Change-Id: Iceda428e7bf5ab19202b1dcb598e389fcaf6978d --- diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index 24c500fbd..8349b0059 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -2892,7 +2892,7 @@ static int64_t handle_inter_mode( memcpy(x->skip_txfm, skip_txfm, sizeof(skip_txfm)); memcpy(x->bsse, bsse, sizeof(bsse)); - if (!skip_txfm_sb) { + if (!skip_txfm_sb || xd->lossless) { int skippable_y, skippable_uv; int64_t sseuv = INT64_MAX; int64_t rdcosty = INT64_MAX;