Skip to content

Commit b2dc9b1

Browse files
author
tieleman
committed
Build package 0.3.7
1 parent cb964cd commit b2dc9b1

File tree

5 files changed

+1753
-7
lines changed

5 files changed

+1753
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## codem-isoboxer 0.3.7 (2019/02/04) ##
2+
3+
* Add support for more VisualSampleEntry types (@davemevans)
4+
15
## codem-isoboxer 0.3.6 (2018/08/14) ##
26

37
* Support for emsg box version 1 (@jeoliva)

dist/iso_boxer.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 */
22
var ISOBoxer = {};
33

44
ISOBoxer.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

Comments
 (0)