media: Refactor codec string to EmeCodec conversion
Instead of stripping the codec string and table look-up by stripped codec string, use MimeUtil ParseAudioCodecString() and ParseVideoCodecString() to convert the codec string to media AudioCodec/VideoCodec, then have dedicated functions to convert media codecs to EmeCodecs. Bug: 707127 Test: All existing tests pass. Change-Id: I9a69a76bd8acc6ef7cb23ef6630c258df3f5347f Reviewed-on: https://chromium-review.googlesource.com/c/1277613 Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Reviewed-by:Chrome Cunningham <chcunningham@chromium.org> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Cr-Commit-Position: refs/heads/master@{#600033}
Showing
This diff is collapsed.
Please register or sign in to comment