Shaka Packager SDK
Loading...
Searching...
No Matches
mp2t_common.h
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
3// found in the LICENSE file.
4
5#ifndef PACKAGER_MEDIA_FORMATS_MP2T_MP2T_COMMON_H_
6#define PACKAGER_MEDIA_FORMATS_MP2T_MP2T_COMMON_H_
7
8#define LOG_LEVEL_TS 5
9#define LOG_LEVEL_PES 4
10#define LOG_LEVEL_ES 3
11
12#define RCHECK(x) \
13 do { \
14 if (!(x)) { \
15 DLOG(WARNING) << "Failure while parsing Mpeg2TS: " << #x; \
16 return false; \
17 } \
18 } while (0)
19
20#endif
21
22namespace shaka {
23namespace media {
24
25const int32_t kMpeg2Timescale = 90000;
26
27} // namespace media
28} // namespace shaka
All the methods that are virtual are virtual for mocking.