[mpp_dec]: Add mpp_dec_callback

NOTE: The MppCtx should be restored for external user.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I2a4241ddacb14196f43b29a59b46658131ebfcee
This commit is contained in:
Herman Chen
2021-10-13 16:40:31 +08:00
parent 1894648650
commit 3aad89dee8
7 changed files with 56 additions and 13 deletions

View File

@@ -449,7 +449,7 @@ MPP_RET mpp_create(MppCtx *ctx, MppApi **mpi)
}
memset(p, 0, sizeof(*p));
p->ctx = new Mpp();
p->ctx = new Mpp(p);
if (NULL == p->ctx) {
mpp_free(p);
mpp_err_f("failed to new Mpp\n");