OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_FORMATS_MP2T_MP2T_COMMON_H_ | 5 #ifndef MEDIA_FORMATS_MP2T_MP2T_COMMON_H_ |
6 #define MEDIA_FORMATS_MP2T_MP2T_COMMON_H_ | 6 #define MEDIA_FORMATS_MP2T_MP2T_COMMON_H_ |
7 | 7 |
8 #define LOG_LEVEL_TS 5 | 8 #define LOG_LEVEL_TS 5 |
9 #define LOG_LEVEL_PES 4 | 9 #define LOG_LEVEL_PES 4 |
10 #define LOG_LEVEL_ES 3 | 10 #define LOG_LEVEL_ES 3 |
11 | 11 |
12 #define RCHECK(x) \ | 12 #define RCHECK(x) \ |
13 do { \ | 13 do { \ |
14 if (!(x)) { \ | 14 if (!(x)) { \ |
15 DLOG(WARNING) << "Failure while parsing Mpeg2TS: " << #x; \ | 15 DLOG(WARNING) << "Failure while parsing Mpeg2TS: " << #x; \ |
16 return false; \ | 16 return false; \ |
17 } \ | 17 } \ |
18 } while (0) | 18 } while (0) |
19 | 19 |
20 #endif | 20 #endif // MEDIA_FORMATS_MP2T_MP2T_COMMON_H_ |
21 | |
OLD | NEW |