目录
mpp硬解码报错:
pointer 0x0 failed on mpp_frame_deinit check mpp_frame
com.rockchip.gpadc.yolodemo E mpp_frame_deinit invalid NULL pointer input
导致解码中断,内存泄漏。
原函数代码:
int MppDecoder::Decode_av(AVPacket* packet)
{
MppPacket mppPacket = NULL;
MppFrame frame = NULL;
// RK_U8 *base = NULL;
MpiDecLoopData *data=&loop_data;
RK_U32 pkt_done = 0;
RK_U32 err_info = 0;
MPP_RET ret = MPP_OK;
MppCtx ctx = data->ctx;
MppApi *mpi = data->mpi;
mpp_packet_init(&mppPacket, packet->data, packet->size);
mpp_packet_set_