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

Unified Diff: media/mp2t/mp2t_common.h

Issue 23566013: Mpeg2 TS stream parser for media source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clang warning fix Created 7 years, 3 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 | « media/mp2t/es_parser_h264.cc ('k') | media/mp2t/mp2t_stream_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mp2t/mp2t_common.h
diff --git a/media/mp2t/mp2t_common.h b/media/mp2t/mp2t_common.h
new file mode 100644
index 0000000000000000000000000000000000000000..01813bfc760a928a4a942eb5d1122c07e4b40d7e
--- /dev/null
+++ b/media/mp2t/mp2t_common.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_MP2T_MP2T_COMMON_H_
+#define MEDIA_MP2T_MP2T_COMMON_H_
+
+#define LOG_LEVEL_TS 5
+#define LOG_LEVEL_PES 4
+#define LOG_LEVEL_ES 3
+
+#define RCHECK(x) \
+ do { \
+ if (!(x)) { \
+ DLOG(WARNING) << "Failure while parsing Mpeg2TS: " << #x; \
+ return false; \
+ } \
+ } while (0)
+
+#endif
+
« no previous file with comments | « media/mp2t/es_parser_h264.cc ('k') | media/mp2t/mp2t_stream_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698