[legacy]: Fix legacy path release error

There is mismatch on flag transaction between vpu_open_context and
vpu_close_context. Open use reserve flag but close use ori_vpu flag.

This patch fix this error which will crash on exit.

Change-Id: I39b4425494d4fe3b16586806060477b28d37fe7a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2017-12-13 15:12:32 +08:00
parent f783fd9268
commit c3d9f8dbb5

View File

@@ -380,7 +380,9 @@ RK_S32 vpu_open_context(VpuCodecContext **ctx)
ret = open_orign_vpu(&s); ret = open_orign_vpu(&s);
if (!ret && s) { if (!ret && s) {
s->extra_cfg.reserved[0] = 1; // for safety
s->extra_cfg.ori_vpu = 1;
extra_cfg.ori_vpu = 1;
} }
} else { } else {
vpu_api_dbg_func("use mpp path\n"); vpu_api_dbg_func("use mpp path\n");