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

Unified Diff: media/base/container_names.h

Issue 2819863003: Only run container name detection upon ffmpeg parse failure. (Closed)
Patch Set: Created 3 years, 8 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/base/container_names.cc » ('j') | media/filters/ffmpeg_glue.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/container_names.h
diff --git a/media/base/container_names.h b/media/base/container_names.h
index e3885ae4dbe263db54f21229c82786be78fb5deb..f65b3794395dcd44c7c1f48b7a6c4fb02b64f7a7 100644
--- a/media/base/container_names.h
+++ b/media/base/container_names.h
@@ -62,6 +62,9 @@ enum MediaContainerName {
CONTAINER_MAX // Must be last
};
+// Minimum size considered for processing.
+enum { kMinimumContainerSize = 12 };
+
// Determine the container type.
MEDIA_EXPORT MediaContainerName DetermineContainer(const uint8_t* buffer,
int buffer_size);
« no previous file with comments | « no previous file | media/base/container_names.cc » ('j') | media/filters/ffmpeg_glue.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698