Skip to content

Commit

Permalink
Build for release 0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjoerd Tieleman committed Aug 14, 2018
1 parent df0797c commit b1a5076
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 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.6 (2018/08/14) ##

* Support for emsg box version 1 (@jeoliva)

## codem-isoboxer 0.3.5 (2017/11/20) ##

* Performance improvement in data reading/writing (@nicosang)
Expand Down
24 changes: 16 additions & 8 deletions dist/iso_boxer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! codem-isoboxer v0.3.5 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */
/*! codem-isoboxer v0.3.6 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */
var ISOBoxer = {};

ISOBoxer.parseBuffer = function(arrayBuffer) {
Expand Down Expand Up @@ -812,15 +812,23 @@ ISOBox.prototype._boxProcessors['elst'] = function() {
// ISO/IEC 23009-1:2014 - 5.10.3.3 Event Message Box
ISOBox.prototype._boxProcessors['emsg'] = function() {
this._procFullBox();
this._procField('scheme_id_uri', 'string', -1);
this._procField('value', 'string', -1);
this._procField('timescale', 'uint', 32);
this._procField('presentation_time_delta', 'uint', 32);
this._procField('event_duration', 'uint', 32);
this._procField('id', 'uint', 32);
if (this.version == 1) {
this._procField('timescale', 'uint', 32);
this._procField('presentation_time', 'uint', 64);
this._procField('event_duration', 'uint', 32);
this._procField('id', 'uint', 32);
this._procField('scheme_id_uri', 'string', -1);
this._procField('value', 'string', -1);
} else {
this._procField('scheme_id_uri', 'string', -1);
this._procField('value', 'string', -1);
this._procField('timescale', 'uint', 32);
this._procField('presentation_time_delta', 'uint', 32);
this._procField('event_duration', 'uint', 32);
this._procField('id', 'uint', 32);
}
this._procField('message_data', 'data', -1);
};

// ISO/IEC 14496-12:2012 - 8.1.2 Free Space Box
ISOBox.prototype._boxProcessors['free'] = ISOBox.prototype._boxProcessors['skip'] = function() {
this._procField('data', 'data', -1);
Expand Down
Loading

0 comments on commit b1a5076

Please sign in to comment.