-
Notifications
You must be signed in to change notification settings - Fork 260
Description
我使用的是USB摄像头,会持续输出4K的H264码流的FIFO文件,解码程序跑一段时间就会死掉。我用的是mpp1.05版本。应该是和下面的的代码有关系。
在mpi_dec_utils.c
if (impl->slot_cnt >= impl->slot_max) {
impl->slots = mpp_realloc(impl->slots, FileBufSlot*, impl->slot_max * 2);
下面是我修改后的代码,运行一段时间会报这样的错误。请帮忙看下是什么问题,谢谢。
Jun 18 23:15:58 lubancat mpp[85924]: mpi_dec_mt_test: 0x14f5a0c0 decode get frame 451
Jun 18 23:15:58 lubancat mpp[85924]: mpi_dec_mt_test: 0x14f5a0c0 decode get frame 452
Jun 18 23:15:58 lubancat mpp[85924]: mpi_dec_mt_test: 0x14f5a0c0 decode get frame 453
Jun 18 23:15:58 lubancat kernel: [ 1210.723604] mpp_rkvdec2 fdc48100.rkvdec-core: resetting...
Jun 18 23:15:58 lubancat kernel: [ 1210.723804] mpp_rkvdec2 fdc48100.rkvdec-core: reset done
Jun 18 23:15:58 lubancat kernel: [ 1210.723810] mpp_rkvdec2 fdc38100.rkvdec-core: resetting...
Jun 18 23:15:58 lubancat kernel: [ 1210.723991] mpp_rkvdec2 fdc38100.rkvdec-core: reset done
Jun 18 23:15:58 lubancat mpp[85924]: mpi_dec_mt_test: 0x14f5a0c0 decode get frame 454 err 100 discard 0
Jun 18 23:15:58 lubancat mpp[85924]: mpi_dec_mt_test: 0x14f5a0c0 decode get frame 455 err 10 discard 0
Jun 18 23:15:58 lubancat mpp[85924]: mpi_dec_mt_test: 0x14f5a0c0 decode get frame 456 err 10 discard 0
Jun 18 23:15:58 lubancat mpp[85924]: mpi_dec_mt_test: 0x14f5a0c0 decode get frame 457 err 10 discard 0