Correct a skip-sgr context for the case r1 == 0

Change-Id: I44db7ee9e848fc08f7c7aa1abd82e3078f6244bf
diff --git a/av1/decoder/decodeframe.c b/av1/decoder/decodeframe.c
index 076cd75..6390e3f 100644
--- a/av1/decoder/decodeframe.c
+++ b/av1/decoder/decodeframe.c
@@ -932,7 +932,8 @@
             rb, SGRPROJ_PRJ_MAX0 - SGRPROJ_PRJ_MIN0 + 1, SGRPROJ_PRJ_SUBEXP_K,
             ref_sgrproj_info->xqd[0] - SGRPROJ_PRJ_MIN0, ACCT_STR) +
         SGRPROJ_PRJ_MIN0;
-    sgrproj_info->xqd[1] = 0;
+    sgrproj_info->xqd[1] = clamp((1 << SGRPROJ_PRJ_BITS) - sgrproj_info->xqd[0],
+                                 SGRPROJ_PRJ_MIN1, SGRPROJ_PRJ_MAX1);
   } else {
     sgrproj_info->xqd[0] =
         aom_read_primitive_refsubexpfin(