Skip to content

Commit

Permalink
Merge branch 'vdec_0704' into 'dev'
Browse files Browse the repository at this point in the history
modify vdec

See merge request maix_sw/k230_canmv!274
  • Loading branch information
gh-sxp committed Jul 4, 2024
2 parents 13bbd92 + 917d7ab commit 3275f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micropython/port/builtin_py/media/vdecoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ def stop(self):
stream.phy_addr = phys_addr

kd_mpi_sys_munmap(vir_data,blk_size)
kd_mpi_vb_release_block(handle)

ret = kd_mpi_vdec_send_stream(self.chn, stream, -1)
if (ret != 0):
del buffer
raise OSError("kd_mpi_vdec_send_stream failed,channel:",self.chn)
# del buffer
kd_mpi_vb_release_block(handle)

status = k_vdec_chn_status()
os.exitpoint(os.EXITPOINT_ENABLE_SLEEP)
Expand Down

0 comments on commit 3275f70

Please sign in to comment.