diff --git a/src/vrend_decode.c b/src/vrend_decode.c index 409cec7..ede7280 100644 --- a/src/vrend_decode.c +++ b/src/vrend_decode.c @@ -1045,6 +1045,10 @@ void vrend_renderer_context_create_internal(uint32_t handle, uint32_t nlen, if (handle >= VREND_MAX_CTX) return; + dctx = dec_ctx[handle]; + if (dctx) + return; + dctx = malloc(sizeof(struct vrend_decode_ctx)); if (!dctx) return;