]> granicus.if.org Git - libvpx/commit
VP9 SVC: fix crash on scaling partition.
authorJerome Jiang <jianj@google.com>
Tue, 27 Nov 2018 01:10:37 +0000 (17:10 -0800)
committerJerome Jiang <jianj@google.com>
Tue, 27 Nov 2018 02:34:12 +0000 (18:34 -0800)
commit545f096ef23d4f70062379d9c4184b15189c2143
tree5cb8824fe38c3531461828ea272b15e8925977c8
parent09ed15d255d96e87ef388ddda7c276dd14042c37
VP9 SVC: fix crash on scaling partition.

When scaling up partition from lower resolution layer L, mi_row and
mi_col from L must be smaller than mi_rows and mi_cols from L.

Before this change, the condition was based on mi_rows from top layer
divided by 2, which is not necessarily equal to the mi_rows from lower
resolution layer.

Added variable in SVC structure to keep track of mi_rows and mi_cols
from each spatial layer.

Re-enable partition scaling for 1080p.

BUG=webm:1578

Change-Id: Icc1c701b095cfe0a92bfecca1ed39dbe21da12b6
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_speed_features.c
vp9/encoder/vp9_svc_layercontext.c
vp9/encoder/vp9_svc_layercontext.h