mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 01:02:39 +08:00
[test]: init encoder output packet length to zero
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com> Change-Id: Iae1bdf28104ea7d7dc9929c267556fe6bf36299b
This commit is contained in:
@@ -634,6 +634,7 @@ static MPP_RET mpi_rc_enc_encode(MpiRc2TestCtx *ctx, MppFrame frm)
|
||||
MppApi *enc_mpi = ctx->enc_mpi;
|
||||
|
||||
mpp_packet_init_with_buffer(&ctx->enc_pkt, pkt_buf_out);
|
||||
mpp_packet_set_length(ctx->enc_pkt, 0);
|
||||
|
||||
ret = enc_mpi->poll(ctx->enc_ctx, MPP_PORT_INPUT, MPP_POLL_BLOCK);
|
||||
if (ret) {
|
||||
|
Reference in New Issue
Block a user