diff --git a/src/demux/transmuxer-interface.ts b/src/demux/transmuxer-interface.ts index a102515d009..52df5527635 100644 --- a/src/demux/transmuxer-interface.ts +++ b/src/demux/transmuxer-interface.ts @@ -337,6 +337,7 @@ export default class TransmuxerInterface { type: ErrorTypes.MEDIA_ERROR, details: ErrorDetails.FRAG_PARSING_ERROR, chunkMeta, + frag: this.frag || undefined, fatal: false, error, err: error, diff --git a/src/demux/tsdemuxer.ts b/src/demux/tsdemuxer.ts index e45070f95ab..02dc71afd82 100644 --- a/src/demux/tsdemuxer.ts +++ b/src/demux/tsdemuxer.ts @@ -872,11 +872,10 @@ function parsePMT( case 0xc2: // SAMPLE-AES EC3 /* falls through */ case 0x87: - logger.warn('Unsupported EC-3 in M2TS found'); - break; + throw new Error('Unsupported EC-3 in M2TS found'); + case 0x24: - logger.warn('Unsupported HEVC in M2TS found'); - break; + throw new Error('Unsupported HEVC in M2TS found'); default: // logger.log('unknown stream type:' + data[offset]);