]> granicus.if.org Git - libvpx/commit
vp9-svc: Fix in choose_partitioning for different scaling.
authorMarco Paniconi <marpan@google.com>
Tue, 3 Apr 2018 22:50:19 +0000 (15:50 -0700)
committerMarco Paniconi <marpan@google.com>
Tue, 3 Apr 2018 23:21:44 +0000 (16:21 -0700)
commitc9b6c5d5ad8b03e32c0e44959cbb74468dd81cbf
tree40d2fc6b42cf3bc702dfe4da2c20fc4231484dd7
parentee37046f1b07a4df47a6943b4750b1ad6115db0e
vp9-svc: Fix in choose_partitioning for different scaling.

In the SVC encoder LAST ref frame should be the last temporal
reference at the same resolution. This is the case for the default/fixed
patterns, but may not be the case for arbitrary pattern in flexible mode.

Add check that the LAST reference frame has same resolution as the current frame.
If the reference scale for LAST is different from current treat the current
frame as key frame just for the purpose of superblock partitioning.
This avoids potential segfault in vp9_int_pro_motion_estimation() for different
scaled reference.

Change-Id: I4276ff616de46cd4e12c73316f85ae313f170242
vp9/encoder/vp9_encodeframe.c