From 1e55b8395d684f13caee8e2e0e23cbffed6ea68d Mon Sep 17 00:00:00 2001 From: Hongjin Li Date: Thu, 8 Sep 2022 11:41:45 +0800 Subject: [PATCH] [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 --- mpp/codec/dec/h264/h264d_api.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mpp/codec/dec/h264/h264d_api.c b/mpp/codec/dec/h264/h264d_api.c index 65cbb924..db55f4d5 100644 --- a/mpp/codec/dec/h264/h264d_api.c +++ b/mpp/codec/dec/h264/h264d_api.c @@ -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) {