mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-11 20:10:18 +08:00
[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:
@@ -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");
|
||||||
|
Reference in New Issue
Block a user