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(hls): Fix av1 codec selection in HLS. #4203

Merged
merged 1 commit into from May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/util/manifest_parser_utils.js
Expand Up @@ -167,7 +167,7 @@ shaka.util.ManifestParserUtils.VIDEO_CODEC_REGEXPS_ = [
/^hev/,
/^hvc/,
/^vp0?[89]/,
/^av1$/,
/^av01/,
];


Expand Down
19 changes: 19 additions & 0 deletions test/hls/manifest_text_parser_unit.js
Expand Up @@ -238,6 +238,25 @@ describe('ManifestTextParser', () => {
'#EXTM3U\n' +
'#EXT-X-MEDIA:CODECS="avc1.64002a,mp4a.40.2",AUDIO="a1,a2"',

// manifest URI:
'https://test/manifest.m3u8');

verifyPlaylist(
{
type: shaka.hls.PlaylistType.MASTER,
tags: [
new shaka.hls.Tag(/* id= */ 3, 'EXT-X-MEDIA',
[
new shaka.hls.Attribute('CODECS',
'av01.0.08M.08,mp4a.40.2'),
]),
],
},

// playlist text:
'#EXTM3U\n' +
'#EXT-X-MEDIA:CODECS="av01.0.08M.08,mp4a.40.2"',

// manifest URI:
'https://test/manifest.m3u8');
});
Expand Down