[utils] parse_codecs: Fix parsing of mixed case codec strings

Authored by: bashonly
This commit is contained in:
bashonly 2024-07-14 14:58:07 -05:00 committed by bashonly
parent b85eef0a61
commit cc0070f649
2 changed files with 6 additions and 0 deletions

View file

@ -929,6 +929,11 @@ class TestUtil(unittest.TestCase):
'acodec': 'none',
'dynamic_range': 'DV',
})
self.assertEqual(parse_codecs('fLaC'), {
'vcodec': 'none',
'acodec': 'flac',
'dynamic_range': None,
})
self.assertEqual(parse_codecs('theora, vorbis'), {
'vcodec': 'theora',
'acodec': 'vorbis',