add comment

This commit is contained in:
notch
2021-01-09 21:23:00 +08:00
parent e068c73c83
commit 6f283c5c13

View File

@@ -167,6 +167,28 @@ func (videoData *VideoData) Marshal() ([]byte, error) {
}
// AVCDecoderConfigurationRecord .
// aligned(8) class AVCDecoderConfigurationRecord {
// unsigned int(8) configurationVersion = 1;
// unsigned int(8) AVCProfileIndication;
// unsigned int(8) profile_compatibility;
// unsigned int(8) AVCLevelIndication;
// bit(6) reserved = '111111'b;
// unsigned int(2) lengthSizeMinusOne;
// bit(3) reserved = '111'b;
// unsigned int(5) numOfSequenceParameterSets;
//
// for (i=0; i< numOfSequenceParameterSets; i++) {
// unsigned int(16) sequenceParameterSetLength ;
//    bit(8*sequenceParameterSetLength) sequenceParameterSetNALUnit;
// }
// unsigned int(8) numOfPictureParameterSets;
// for (i=0; i< numOfPictureParameterSets; i++) {
// unsigned int(16) pictureParameterSetLength;
// bit(8*pictureParameterSetLength) pictureParameterSetNALUnit;
// }
// }
type AVCDecoderConfigurationRecord struct {
ConfigurationVersion byte
AVCProfileIndication byte