[h264d] h264d_callback, add NULL check; remove warning;

[vpu_api_legacy]   add timeUs when dump write yuv 

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@699 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
DingWei
2016-05-07 15:30:46 +00:00
parent f498795a98
commit 6a6bba0f3a
4 changed files with 21 additions and 22 deletions

View File

@@ -235,12 +235,12 @@ RK_S32 VpuApi:: decode_getoutframe(DecoderOut_t *aDecOut)
}
fwrite(fp_buf, 1, img_w * img_h * 3 / 2, fp);
if (vpu_api_debug & VPU_API_DBG_DUMP_LOG) {
mpp_log("[write_out_yuv] FrameWidth = %d, FrameHeight = %d", img_w, img_h);
mpp_log("[write_out_yuv] timeUs=%lld, FrameWidth=%d, FrameHeight=%d", aDecOut->timeUs, img_w, img_h);
}
} else {
fwrite(ptr, 1, vframe->FrameWidth * vframe->FrameHeight * 3 / 2, fp);
if (vpu_api_debug & VPU_API_DBG_DUMP_LOG) {
mpp_log("[write_out_yuv] FrameWidth = %d, FrameHeight = %d", vframe->FrameWidth, vframe->FrameHeight);
mpp_log("[write_out_yuv] timeUs=%lld, FrameWidth=%d, FrameHeight=%d", aDecOut->timeUs, vframe->FrameWidth, vframe->FrameHeight);
}
}
fflush(fp);