[h264d]: Fix 264d decoding missing last frame

When the last packet sends empty data, h264d_prepare
returns in advance, causing the previous nalu to not
be saved normally, resulting in the loss of the last
frame of data.

Change-Id: Ic519b4326935d82b2534e7442c0ba5175885cef2
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
This commit is contained in:
Hongjin Li
2022-09-08 11:41:45 +08:00
committed by Herman Chen
parent da38e7c7d9
commit 1e55b8395d

View File

@@ -514,7 +514,6 @@ MPP_RET h264d_prepare(void *decoder, MppPacket pkt, HalDecTask *task)
p_Inp->in_length = 0;
task->flags.eos = p_Inp->pkt_eos;
h264d_flush_dpb_eos(p_Dec);
goto __RETURN;
}
if (p_Inp->in_length > MAX_STREM_IN_SIZE) {