Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Unified Diff: media/base/audio_codecs.cc

Issue 2587413004: Handle mp4a.a5 and mp4a.a6 codec ids in StringToAudioCodec (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_codecs.cc
diff --git a/media/base/audio_codecs.cc b/media/base/audio_codecs.cc
index 8aaa24f0394af4f52b22baed786c9c1ba1881212..09b191000b52b1148567b05ea17b4297937ad873 100644
--- a/media/base/audio_codecs.cc
+++ b/media/base/audio_codecs.cc
@@ -52,9 +52,9 @@ std::string GetCodecName(AudioCodec codec) {
AudioCodec StringToAudioCodec(const std::string& codec_id) {
if (codec_id == "aac")
return kCodecAAC;
- if (codec_id == "ac-3" || codec_id == "mp4a.A5")
+ if (codec_id == "ac-3" || codec_id == "mp4a.A5" || codec_id == "mp4a.a5")
return kCodecAC3;
- if (codec_id == "ec-3" || codec_id == "mp4a.A6")
+ if (codec_id == "ec-3" || codec_id == "mp4a.A6" || codec_id == "mp4a.a6")
return kCodecEAC3;
if (codec_id == "mp3")
return kCodecMP3;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698