diff --git a/av/format/flv/videodata.go b/av/format/flv/videodata.go index 00dd1cf..56936c9 100644 --- a/av/format/flv/videodata.go +++ b/av/format/flv/videodata.go @@ -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