Destroying a Channel

Ascend 310 aclvenc API

Ascend 310P hi_mpi API

What You Need to Do

Destroy a channel:

aclvencDestroyChannel

Destroy a channel:

hi_mpi_venc_destroy_chn

Modify your code to use the hi_mpi_venc_destroy_chn API.

Note that before calling the hi_mpi API to destroy a channel, call the hi_mpi_venc_query_status API to obtain the encoder status and check whether all input data is encoded, and then destroy the channel.