]> granicus.if.org Git - libvpx/commitdiff
Spatial SVC crash fix
authorDebargha Mukherjee <debargha@google.com>
Wed, 25 Nov 2015 00:40:27 +0000 (16:40 -0800)
committerDebargha Mukherjee <debargha@google.com>
Wed, 25 Nov 2015 00:40:27 +0000 (16:40 -0800)
Fixes a spatial_svc breakage introduced in
https://chromium-review.googlesource.com/#/c/305228/3.

Change-Id: I7f2cecbdca980addb85d5e58b58b5454f4730ada

vp9/encoder/vp9_encodeframe.c

index f9c28f6a99355b626131aa0f4f830310865149d4..edccc4dd2d8ec2bc387df7cad7375a475f63b203 100644 (file)
@@ -2432,8 +2432,15 @@ static void rd_pick_partition(VP9_COMP *cpi, ThreadData *td,
 
   if (cpi->sf.use_square_partition_only &&
       bsize > cpi->sf.use_square_only_threshold) {
+    if (cpi->use_svc) {
+      if (!vp9_active_h_edge(cpi, mi_row, mi_step) || x->e_mbd.lossless)
+        partition_horz_allowed &= force_horz_split;
+      if (!vp9_active_v_edge(cpi, mi_row, mi_step) || x->e_mbd.lossless)
+        partition_vert_allowed &= force_vert_split;
+    } else {
       partition_horz_allowed &= force_horz_split;
       partition_vert_allowed &= force_vert_split;
+    }
   }
 
   save_context(x, mi_row, mi_col, a, l, sa, sl, bsize);