Skip to content

Commit

Permalink
test ptsOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 committed Jan 23, 2023
1 parent b6b8e04 commit ba64cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/mp4-probe.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ QUnit.test('can get ID3 data from a v0 EMSG box', function(assert) {

var v0EmsgId3Data = mp4Helpers.generateEmsgBoxData(0, id3Data);
var emsgId3Box = new Uint8Array(box('emsg', Array.from(v0EmsgId3Data)));
var emsgBoxes = probe.getEmsgID3(emsgId3Box);
assert.equal(emsgBoxes[0].pts, 10, 'got correct ID3 pts value from v0 emsg');
var emsgBoxes = probe.getEmsgID3(emsgId3Box, 10);
assert.equal(emsgBoxes[0].pts, 20, 'got correct ID3 pts value from v0 emsg');
assert.equal(emsgBoxes[0].duration, 0, 'got correct ID3 duration value from v0 emsg');
assert.deepEqual(emsgBoxes[0].data, id3Data, 'got correct ID3 data from v0 emsg');
});
Expand Down

0 comments on commit ba64cd1

Please sign in to comment.