VDEC Failure Due to Inconsistency Between the Actual Stream Type and the Decoder Type Set in the API
Symptom
VDEC fails to decode every frame.
A log example on the device is as follows:
temporal_id(-1) is not supported. sps id 2 is larger than 2. pid 2487 usr chn 4 device 0 video format unsupport at event chn 4
In
In
Possible Cause
The decoding protocol type (HI_PT_H264 or HI_PT_H265) is specified during the creation of a VDEC channel. If the actual decoding stream type is different from the configured decoding protocol type, the decoding fails.
Solution
Check whether the input parameter attr->type passed by the hi_mpi_vdec_create_chn API is HI_PT_H264 or HI_PT_H265, and compare it with the actual stream type.