Skip to content

Commit

Permalink
fix: Fix video/mp2t mimetype conversion. (shaka-project#5039)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Feb 28, 2023
1 parent ad89482 commit 2d0e4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/mime_utils.js
Expand Up @@ -49,7 +49,7 @@ shaka.util.MimeUtils = class {

if (TransmuxerEngine.isSupported(fullMimeType, contentType)) {
return TransmuxerEngine.convertCodecs(contentType, fullMimeType);
} else if (contentType == ContentType.AUDIO) {
} else if (mimeType != 'video/mp2t' && contentType == ContentType.AUDIO) {
// video/mp2t is the correct mime type for TS audio, so only replace the
// word "video" with "audio" for non-TS audio content.
return fullMimeType.replace('video', 'audio');
Expand Down

0 comments on commit 2d0e4cc

Please sign in to comment.