[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:
Xinhuang Li
2020-07-24 14:08:14 +08:00
committed by Herman Chen
parent 0b5a25d903
commit aa5c13d3a8
3 changed files with 3 additions and 0 deletions

View File

@@ -731,6 +731,7 @@ static MPP_RET mpi_rc_codec(MpiRcTestCtx *ctx)
mpp_frame_set_eos(frame_in, frm_eos);
mpp_packet_init_with_buffer(&packet, pkt_buf_out);
mpp_packet_set_length(packet, 0);
ret = enc_mpi->poll(enc_ctx, MPP_PORT_INPUT, MPP_POLL_BLOCK);
if (ret) {