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

Unified Diff: media/filters/stream_parser_factory.cc

Issue 413393006: Fix two uninitialized variables in media (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/mp4/box_definitions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/stream_parser_factory.cc
diff --git a/media/filters/stream_parser_factory.cc b/media/filters/stream_parser_factory.cc
index dd0e95aa82b4c3a69667f894d931aa8ec1600529..141e3849791439ab3d5acce36256a25d8ccb030a 100644
--- a/media/filters/stream_parser_factory.cc
+++ b/media/filters/stream_parser_factory.cc
@@ -99,13 +99,14 @@ static StreamParser* BuildWebMParser(
}
#if defined(USE_PROPRIETARY_CODECS)
+static const int kNullObjectType = 0;
// AAC Object Type IDs that Chrome supports.
static const int kAACLCObjectType = 2;
static const int kAACSBRObjectType = 5;
static int GetMP4AudioObjectType(const std::string& codec_id,
const LogCB& log_cb) {
- int audio_object_type;
+ int audio_object_type = kNullObjectType;
std::vector<std::string> tokens;
if (Tokenize(codec_id, ".", &tokens) != 3 ||
tokens[0] != "mp4a" || tokens[1] != "40" ||
« no previous file with comments | « no previous file | media/formats/mp4/box_definitions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698