Skip to content

Commit

Permalink
Build package 0.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tieleman committed Feb 4, 2019
1 parent cb964cd commit b2dc9b1
Show file tree
Hide file tree
Showing 5 changed files with 1,753 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## codem-isoboxer 0.3.7 (2019/02/04) ##

* Add support for more VisualSampleEntry types (@davemevans)

## codem-isoboxer 0.3.6 (2018/08/14) ##

* Support for emsg box version 1 (@jeoliva)
Expand Down
14 changes: 10 additions & 4 deletions dist/iso_boxer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! codem-isoboxer v0.3.6 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */
/*! codem-isoboxer v0.3.7 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */
var ISOBoxer = {};

ISOBoxer.parseBuffer = function(arrayBuffer) {
Expand Down Expand Up @@ -768,8 +768,14 @@ ISOBox.prototype._writeField = function(type, size, value) {
}
};

// ISO/IEC 14496-15:2014 - avc1 box
ISOBox.prototype._boxProcessors['avc1'] = ISOBox.prototype._boxProcessors['encv'] = function() {
// ISO/IEC 14496-15:2014 - avc1/2/3/4, hev1, hvc1, encv
ISOBox.prototype._boxProcessors['avc1'] =
ISOBox.prototype._boxProcessors['avc2'] =
ISOBox.prototype._boxProcessors['avc3'] =
ISOBox.prototype._boxProcessors['avc4'] =
ISOBox.prototype._boxProcessors['hvc1'] =
ISOBox.prototype._boxProcessors['hev1'] =
ISOBox.prototype._boxProcessors['encv'] = function() {
// SampleEntry fields
this._procFieldArray('reserved1', 6, 'uint', 8);
this._procField('data_reference_index', 'uint', 16);
Expand All @@ -786,7 +792,7 @@ ISOBox.prototype._boxProcessors['avc1'] = ISOBox.prototype._boxProcessors['encv'
this._procFieldArray('compressorname', 32,'uint', 8);
this._procField('depth', 'uint', 16);
this._procField('pre_defined3', 'int', 16);
// AVCSampleEntry fields
// Codec-specific fields
this._procField('config', 'data', -1);
};

Expand Down
Loading

0 comments on commit b2dc9b1

Please sign in to comment.