Skip to content

Commit

Permalink
fix: binary issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Feb 19, 2021
1 parent 0c8c3ff commit e9f5079
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/parse-blocks.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#! /usr/bin/env node
/* eslint-disable no-console */
const {version} = require('../package.json');
const {parseData} = require('../dist/ebml-helpers.js');
const {concatTypedArrays} = require('../dist/byte-helpers.js');
const {parseData} = require('../cjs/ebml-helpers.js');
const {concatTypedArrays} = require('../cjs/byte-helpers.js');
const fs = require('fs');
const path = require('path');

Expand Down
4 changes: 2 additions & 2 deletions bin/parse-format.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#! /usr/bin/env node
/* eslint-disable no-console */
const {version} = require('../package.json');
const {parseFormatForBytes} = require('../dist/format-parser.js');
const {concatTypedArrays} = require('../dist/byte-helpers.js');
const {parseFormatForBytes} = require('../cjs/format-parser.js');
const {concatTypedArrays} = require('../cjs/byte-helpers.js');
const fs = require('fs');
const path = require('path');

Expand Down
2 changes: 2 additions & 0 deletions src/mp4-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ export const addSampleDescription = function(track, bytes) {
const decoderConfig = esDescriptor && esDescriptor.descriptors.filter(({tag}) => tag === 0x04)[0];

if (decoderConfig) {
// most codecs do not have a further '.'
// such as 0xa5 for ac-3 and 0xa6 for e-ac-3
codec += '.' + toHexString(decoderConfig.oti);
if (decoderConfig.oti === 0x40) {
codec += '.' + (decoderConfig.descriptors[0].bytes[0] >> 3).toString();
Expand Down

0 comments on commit e9f5079

Please sign in to comment.