shithub: libvpx

Download patch

ref: 632ee6aa76df257a90430387eca6a6e79780491f
parent: 69d75c55cf335d7fd72da6f70c89cb2e381ba21b
author: Yaowu Xu <[email protected]>
date: Wed Dec 19 05:48:37 EST 2018

Correct condition for skip

Do not skip without check when lossless is requested.

Change-Id: Iceda428e7bf5ab19202b1dcb598e389fcaf6978d

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -2892,7 +2892,7 @@
   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;