mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 18:11:02 +08:00
[vpu_api_legacy]: fix empty buffer on info change frame
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@411 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -139,6 +139,7 @@ RK_S32 VpuApi:: decode_getoutframe(DecoderOut_t *aDecOut)
|
|||||||
vframe->ShowTime.TimeHigh = (RK_U32)(pts >> 32);
|
vframe->ShowTime.TimeHigh = (RK_U32)(pts >> 32);
|
||||||
vframe->ShowTime.TimeLow = (RK_U32)pts;
|
vframe->ShowTime.TimeLow = (RK_U32)pts;
|
||||||
buf = mpp_frame_get_buffer(mframe);
|
buf = mpp_frame_get_buffer(mframe);
|
||||||
|
if (buf) {
|
||||||
ptr = mpp_buffer_get_ptr(buf);
|
ptr = mpp_buffer_get_ptr(buf);
|
||||||
fd = mpp_buffer_get_fd(buf);
|
fd = mpp_buffer_get_fd(buf);
|
||||||
vframe->FrameBusAddr[0] = fd;
|
vframe->FrameBusAddr[0] = fd;
|
||||||
@@ -154,6 +155,7 @@ RK_S32 VpuApi:: decode_getoutframe(DecoderOut_t *aDecOut)
|
|||||||
vframe->vpumem.phy_addr = fd;
|
vframe->vpumem.phy_addr = fd;
|
||||||
vframe->vpumem.size = vframe->FrameWidth * vframe->FrameHeight * 3 / 2;
|
vframe->vpumem.size = vframe->FrameWidth * vframe->FrameHeight * 3 / 2;
|
||||||
vframe->vpumem.offset = (RK_U32*)buf;
|
vframe->vpumem.offset = (RK_U32*)buf;
|
||||||
|
}
|
||||||
if (mpp_frame_get_eos(mframe)) {
|
if (mpp_frame_get_eos(mframe)) {
|
||||||
aDecOut->nFlags = VPU_API_EOS_STREAM_REACHED;
|
aDecOut->nFlags = VPU_API_EOS_STREAM_REACHED;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user