Skip to content

Commit

Permalink
Expand variable name for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed May 9, 2022
1 parent 786105a commit 095f2f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/util/mime_utils.js
Expand Up @@ -104,8 +104,8 @@ shaka.util.MimeUtils = class {
* @return {string}
*/
static getNormalizedCodec(codecString) {
const cb = shaka.util.MimeUtils.getCodecBase(codecString);
switch (cb) {
const codecBase = shaka.util.MimeUtils.getCodecBase(codecString);
switch (codecBase) {
case 'avc1':
case 'avc3':
return 'avc'; // H264
Expand All @@ -116,7 +116,7 @@ shaka.util.MimeUtils = class {
case 'dvhe':
return 'dovi'; // Dolby Vision
}
return cb;
return codecBase;
}

/**
Expand Down

0 comments on commit 095f2f1

Please sign in to comment.