Why does the VCU decoder crash when trying to read video data from a file in small chunks?
When the decoder tries to read data chunk by chunk (for example reading 10240 bytes each time), it crashes.
Normally the VCU decoder allocates a large buffer using the frame.data() argument from the infile.read API.
The infile.read API is part of main.cpp.
The following change needs to be made to the code to read data in small chunks:
There is a known issue with the vcu_omx_decoder application when it is modified to read chunks of 10240 bytes from the file source.
Once the input buffer has read the first bytes of data, it gets deleted by buffer handling operations to free it up to read new data.
As a result of this operation, a memory fault error is reported.
For effective operation of the decoder, complete frame data should be retained and the buffer should be freed without destroying memory.
AR# 73274 | |
---|---|
日期 | 01/25/2020 |
状态 | Active |
Type | 已知问题 |
器件 | |
Tools | |
IP | |
Boards & Kits |