summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv@google.com>2016-08-19 09:09:11 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-11-16 14:17:43 -0800
commitb44c72b40fad10ef9fa739fbb5a727b496f4701b (patch)
tree5c6eef3a3fa843aa09e36fa22edde8860baf477b
parentd066ebf75291ebaaa0486290ef9648725bfdd6d9 (diff)
downloadandroid_external_libvpx-stable/cm-12.1-YOG4P.tar.gz
android_external_libvpx-stable/cm-12.1-YOG4P.tar.bz2
android_external_libvpx-stable/cm-12.1-YOG4P.zip
DO NOT MERGE libvpx: Cherry-pick 8b4c315 from upstreamstable/cm-12.1-YOG4P
CYNGNOS-3303 Description from upstream: vp9_alloc_context_buffers: clear cm->mi* on failure this fixes a crash in vp9_dec_setup_mi() via vp9_init_context_buffers() should decoding continue and the decoder resyncs on a smaller frame Bug: 30593752 Change-Id: Iafbf1c4114062bf796f51a6b03be71328f7bcc69 (cherry picked from commit 737c8493693243838128788fe9c3abc51f17338e) (cherry picked from commit d80513bb4ff4ef646c8a17e1cf42a1985209f773)
-rw-r--r--libvpx/vp9/common/vp9_alloccommon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvpx/vp9/common/vp9_alloccommon.c b/libvpx/vp9/common/vp9_alloccommon.c
index ac417b6..ed337a0 100644
--- a/libvpx/vp9/common/vp9_alloccommon.c
+++ b/libvpx/vp9/common/vp9_alloccommon.c
@@ -152,6 +152,7 @@ int vp9_alloc_context_buffers(VP9_COMMON *cm, int width, int height) {
return 0;
fail:
+ vp9_set_mb_mi(cm, 0, 0);
vp9_free_context_buffers(cm);
return 1;
}