--- libvpx-1.3.0-orig/vp8/vp8_dx_iface.c	2014-09-28 16:55:27 +0900
+++ libvpx-1.3.0/vp8/vp8_dx_iface.c	2014-11-02 19:12:11 +0900
@@ -450,8 +450,11 @@
             }
 
             res = vp8_create_decoder_instances(&ctx->yv12_frame_buffers, &oxcf);
-            ctx->yv12_frame_buffers.pbi[0]->decrypt_cb = ctx->decrypt_cb;
-            ctx->yv12_frame_buffers.pbi[0]->decrypt_state = ctx->decrypt_state;
+            if (!res)
+            {
+                ctx->yv12_frame_buffers.pbi[0]->decrypt_cb = ctx->decrypt_cb;
+                ctx->yv12_frame_buffers.pbi[0]->decrypt_state = ctx->decrypt_state;
+            }
         }
 
         ctx->decoder_init = 1;
