From 6f283c5c13079f080bae11c14af4af422fd8d580 Mon Sep 17 00:00:00 2001 From: notch Date: Sat, 9 Jan 2021 21:23:00 +0800 Subject: [PATCH] add comment --- av/format/flv/videodata.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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