bogus text for unsupported codec mime string
This commit is contained in:
parent
db63b7013c
commit
f98469f09b
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,8 @@ class MP4Tree {
|
||||||
parse_codecs() {
|
parse_codecs() {
|
||||||
this.parse_into('moov', 8);
|
this.parse_into('moov', 8);
|
||||||
// loop over all traks (can handle pure audio, pure video, both, multiple)
|
// loop over all traks (can handle pure audio, pure video, both, multiple)
|
||||||
|
// only doing h264 video since thats all I can check currently doing
|
||||||
|
// transcoding and running obs together with cpu usage
|
||||||
while (this.idx < this.data.byteLength) {
|
while (this.idx < this.data.byteLength) {
|
||||||
if (!this.parse_until('trak')) { // if no more tracks in file
|
if (!this.parse_until('trak')) { // if no more tracks in file
|
||||||
break;
|
break;
|
||||||
|
@ -60,6 +62,8 @@ class MP4Tree {
|
||||||
this.parse_avc1();
|
this.parse_avc1();
|
||||||
} else if (media_sample == 'mp4a') {
|
} else if (media_sample == 'mp4a') {
|
||||||
this.parse_mp4a();
|
this.parse_mp4a();
|
||||||
|
} else {
|
||||||
|
this.codecs.push('unsup codec');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.idx = curr_track_end; // always skip to end of current processed track
|
this.idx = curr_track_end; // always skip to end of current processed track
|
||||||
|
|
Loading…
Reference in a new issue