diff --git a/lib/util/manifest_parser_utils.js b/lib/util/manifest_parser_utils.js index 4a7046edf2..7be3caa716 100644 --- a/lib/util/manifest_parser_utils.js +++ b/lib/util/manifest_parser_utils.js @@ -167,7 +167,7 @@ shaka.util.ManifestParserUtils.VIDEO_CODEC_REGEXPS_ = [ /^hev/, /^hvc/, /^vp0?[89]/, - /^av1$/, + /^av01/, ]; diff --git a/test/hls/manifest_text_parser_unit.js b/test/hls/manifest_text_parser_unit.js index c637399510..c653d5e651 100644 --- a/test/hls/manifest_text_parser_unit.js +++ b/test/hls/manifest_text_parser_unit.js @@ -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'); });