mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[h264d]: Fix heap-use-after-free issue in h264d
Change-Id: I88dced3dbd0a3e6e4f34fee86d7f019bfc130d14 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
parent
81d4248166
commit
c56c01494d
1 changed files with 1 additions and 1 deletions
|
|
@ -1194,11 +1194,11 @@ static MPP_RET direct_output(H264dVideoCtx_t *p_Vid, H264_DpbBuf_t *p_Dpb, H264_
|
|||
//!< we have a frame (or complementary field pair), so output it directly
|
||||
FUN_CHECK(ret = flush_direct_output(p_Vid));
|
||||
write_picture(p, p_Vid);
|
||||
p_Dpb->last_output_poc = p->poc;
|
||||
free_storable_picture(p_Vid->p_Dec, p);
|
||||
p_Dpb->last_picture = NULL;
|
||||
p_Vid->out_buffer.is_used = 0;
|
||||
p_Vid->out_buffer.is_directout = 0;
|
||||
p_Dpb->last_output_poc = p->poc;
|
||||
goto __RETURN;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue