Skip to content

Commit

Permalink
fix: Fix normalized codec for VVC (#7201)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Aug 26, 2024
1 parent 4ae6082 commit 22713b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util/mime_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ shaka.util.MimeUtils = class {
case base === 'hvc1':
case base === 'hev1':
return 'hevc'; // H265
case base === 'vvc1':
case base === 'vvi1':
return 'vvc'; // H266
case base === 'dvh1':
case base === 'dvhe':
return 'dovi-hevc'; // Dolby Vision based in HEVC
Expand Down
3 changes: 3 additions & 0 deletions test/util/mime_utils_unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ describe('MimeUtils', () => {
expect(getNormalizedCodec('hvc1')).toBe('hevc');
expect(getNormalizedCodec('hev1')).toBe('hevc');

expect(getNormalizedCodec('vvc1')).toBe('vvc');
expect(getNormalizedCodec('vvi1')).toBe('vvc');

expect(getNormalizedCodec('dvh1.05')).toBe('dovi-hevc');
expect(getNormalizedCodec('dvhe.05')).toBe('dovi-hevc');

Expand Down

0 comments on commit 22713b1

Please sign in to comment.