1- /*! codem-isoboxer v0.3.6 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */
1+ /*! codem-isoboxer v0.3.7 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */
22var ISOBoxer = { } ;
33
44ISOBoxer . parseBuffer = function ( arrayBuffer ) {
@@ -768,8 +768,14 @@ ISOBox.prototype._writeField = function(type, size, value) {
768768 }
769769} ;
770770
771- // ISO/IEC 14496-15:2014 - avc1 box
772- ISOBox . prototype . _boxProcessors [ 'avc1' ] = ISOBox . prototype . _boxProcessors [ 'encv' ] = function ( ) {
771+ // ISO/IEC 14496-15:2014 - avc1/2/3/4, hev1, hvc1, encv
772+ ISOBox . prototype . _boxProcessors [ 'avc1' ] =
773+ ISOBox . prototype . _boxProcessors [ 'avc2' ] =
774+ ISOBox . prototype . _boxProcessors [ 'avc3' ] =
775+ ISOBox . prototype . _boxProcessors [ 'avc4' ] =
776+ ISOBox . prototype . _boxProcessors [ 'hvc1' ] =
777+ ISOBox . prototype . _boxProcessors [ 'hev1' ] =
778+ ISOBox . prototype . _boxProcessors [ 'encv' ] = function ( ) {
773779 // SampleEntry fields
774780 this . _procFieldArray ( 'reserved1' , 6 , 'uint' , 8 ) ;
775781 this . _procField ( 'data_reference_index' , 'uint' , 16 ) ;
@@ -786,7 +792,7 @@ ISOBox.prototype._boxProcessors['avc1'] = ISOBox.prototype._boxProcessors['encv'
786792 this . _procFieldArray ( 'compressorname' , 32 , 'uint' , 8 ) ;
787793 this . _procField ( 'depth' , 'uint' , 16 ) ;
788794 this . _procField ( 'pre_defined3' , 'int' , 16 ) ;
789- // AVCSampleEntry fields
795+ // Codec-specific fields
790796 this . _procField ( 'config' , 'data' , - 1 ) ;
791797} ;
792798
0 commit comments