shithub: libvpx

Download patch

ref: 6bfbb691e2b84a5e753ee391cdd932fbeabafb42
parent: 52b32ad025ddc50f095058fc9755c28488306ae4
parent: caba78ef49e8cc2250ea79c2d21e5e3710354199
author: Deb Mukherjee <debargha@google.com>
date: Fri May 23 07:01:09 EDT 2014

Merge "Fixes a bug for uninitialized frame buffers"

--- a/vp8/vp8_dx_iface.c
+++ b/vp8/vp8_dx_iface.c
@@ -386,8 +386,10 @@
     /* Set these even if already initialized.  The caller may have changed the
      * decrypt config between frames.
      */
-    ctx->yv12_frame_buffers.pbi[0]->decrypt_cb = ctx->decrypt_cb;
-    ctx->yv12_frame_buffers.pbi[0]->decrypt_state = ctx->decrypt_state;
+    if (ctx->decoder_init) {
+      ctx->yv12_frame_buffers.pbi[0]->decrypt_cb = ctx->decrypt_cb;
+      ctx->yv12_frame_buffers.pbi[0]->decrypt_state = ctx->decrypt_state;
+    }
 
     if (!res)
     {