]> granicus.if.org Git - libvpx/commitdiff
vp10_alloc_context_buffers: clear cm->mi* on failure
authorJames Zern <jzern@google.com>
Fri, 19 Aug 2016 17:39:46 +0000 (10:39 -0700)
committerJames Zern <jzern@google.com>
Fri, 19 Aug 2016 17:39:46 +0000 (10:39 -0700)
based on:
8b4c315 vp9_alloc_context_buffers: clear cm->mi* on failure

Change-Id: I3438a052721b960ff178cb647780f11bc33571fe

vp10/common/alloccommon.c

index be2e5386708c031a272211017ca53530aedcd6f7..10b4bf1682985056300eb9a1ae60839479070fa3 100644 (file)
@@ -151,6 +151,8 @@ int vp10_alloc_context_buffers(VP10_COMMON *cm, int width, int height) {
   return 0;
 
 fail:
+  // clear the mi_* values to force a realloc on resync
+  vp10_set_mb_mi(cm, 0, 0);
   vp10_free_context_buffers(cm);
   return 1;
 }