mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 17:46:50 +08:00
fix[vpu_api]: Fix frame format and eos cfg
Input encode frame should set format and eos Change-Id: I08536bcb022cafcb3756745841b85b24929401cb Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
@@ -1102,6 +1102,11 @@ RK_S32 VpuApiLegacy::encode(VpuCodecContext *ctx, EncInputStream_t *aEncInStrm,
|
||||
mpp_err("unsupport format 0x%x\n", format & MPP_FRAME_FMT_MASK);
|
||||
} break;
|
||||
}
|
||||
mpp_frame_set_fmt(frame, (MppFrameFormat)(format & MPP_FRAME_FMT_MASK));
|
||||
if (aEncInStrm->nFlags) {
|
||||
mpp_log_f("found eos\n");
|
||||
mpp_frame_set_eos(frame, 1);
|
||||
}
|
||||
|
||||
fd = aEncInStrm->bufPhyAddr;
|
||||
if (fd_input < 0) {
|
||||
@@ -1361,7 +1366,7 @@ RK_S32 VpuApiLegacy::encoder_sendframe(VpuCodecContext *ctx, EncInputStream_t *a
|
||||
mpp_err("unsupport format 0x%x\n", format & MPP_FRAME_FMT_MASK);
|
||||
} break;
|
||||
}
|
||||
|
||||
mpp_frame_set_fmt(frame, (MppFrameFormat)(format & MPP_FRAME_FMT_MASK));
|
||||
if (aEncInStrm->nFlags) {
|
||||
mpp_log_f("found eos true\n");
|
||||
mpp_frame_set_eos(frame, 1);
|
||||
|
Reference in New Issue
Block a user