Resolving sps, first analysis of the above data, we know sps logo is 67, the last data is 0, the data is representative of the size 1a sps 26
static bool validate_avcC_spc(
uint8_t* extradata,uint32_t extrasize,int32_t *max_ref_frames,int* level,int* profile){
bool interlaced = true;
uint8_t * spc = extradata +6; // skip data portion sps
uint32_t sps_size = AV_RB16 (spc); // get the size of the sps
if(sps_size)
parseh264_sps (spc + 3, sps_size-1, level, profile, & interlaced, max_ref_frames); // parse depending on the starting position and the len sps
if(interlaced)
return false;
return true;
}
Reproduced in: https: //www.jianshu.com/p/8311efac1c6c