2014-04-01 01:34:59 +00:00
|
|
|
// Copyright 2014 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.
|
|
|
|
|
2017-12-20 00:56:36 +00:00
|
|
|
#ifndef PACKAGER_MEDIA_FORMATS_MP2T_MP2T_COMMON_H_
|
|
|
|
#define PACKAGER_MEDIA_FORMATS_MP2T_MP2T_COMMON_H_
|
2014-04-01 01:34:59 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-04-07 17:48:25 +00:00
|
|
|
namespace media {
|
|
|
|
|
2014-09-30 21:52:21 +00:00
|
|
|
const uint32_t kMpeg2Timescale = 90000;
|
2014-04-07 17:48:25 +00:00
|
|
|
|
|
|
|
} // namespace media
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|