Skip to content

Commit

Permalink
fix: Fix video/mp2t mimetype conversion. (#5039)
Browse files Browse the repository at this point in the history
Related to #5036
  • Loading branch information
avelad authored and joeyparrish committed Mar 1, 2023
1 parent a080996 commit 4fd078e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/mime_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ shaka.util.MimeUtils = class {
return shaka.media.Transmuxer.convertTsCodecs(
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 4fd078e

Please sign in to comment.