Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: PERIOD_FLATTENING_FAILED error when periods have different base sample types. #4206

Merged
merged 12 commits into from May 17, 2022
6 changes: 3 additions & 3 deletions lib/util/mime_utils.js
Expand Up @@ -107,13 +107,13 @@ shaka.util.MimeUtils = class {
switch (shaka.util.MimeUtils.getCodecBase(codecString)) {
ghouet marked this conversation as resolved.
Show resolved Hide resolved
case 'avc1':
case 'avc3':
return 'avc';
return 'avc'; // H264
case 'hvc1':
case 'hev1':
return 'hevc';
return 'hevc'; // H265
case 'dvh1':
case 'dvhe':
return 'dovi';
return 'dovi'; // Dolby Vision
}
return codecString;
ghouet marked this conversation as resolved.
Show resolved Hide resolved
}
Expand Down