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

Unified Diff: media/formats/mpeg/mpeg1_audio_stream_parser.cc

Issue 2705353002: Fix mpeg-1 layer2 parsing typo. (Closed)
Patch Set: Nuke comment. Created 3 years, 10 months 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 | media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mpeg/mpeg1_audio_stream_parser.cc
diff --git a/media/formats/mpeg/mpeg1_audio_stream_parser.cc b/media/formats/mpeg/mpeg1_audio_stream_parser.cc
index bf5d1cbdef45f74bece282c9ba425f3cf21a529b..a86c1e1b1ae07cb008d239074bede92cdcb4faef 100644
--- a/media/formats/mpeg/mpeg1_audio_stream_parser.cc
+++ b/media/formats/mpeg/mpeg1_audio_stream_parser.cc
@@ -138,7 +138,7 @@ bool MPEG1AudioStreamParser::ParseHeader(
return false;
}
- if (layer == kLayer2 && kIsAllowed[bitrate_index][channel_mode]) {
+ if (layer == kLayer2 && !kIsAllowed[bitrate_index][channel_mode]) {
MEDIA_LOG(ERROR, media_log) << "Invalid (bitrate_index, channel_mode)"
<< " combination :" << std::hex
<< " bitrate_index " << bitrate_index
« no previous file with comments | « no previous file | media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698