shaka-packager/packager/media/formats/mp2t/mp2t_common.h

29 lines
642 B
C
Raw Normal View History

// 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.
#ifndef PACKAGER_MEDIA_FORMATS_MP2T_MP2T_COMMON_H_
#define PACKAGER_MEDIA_FORMATS_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
namespace shaka {
namespace media {
const uint32_t kMpeg2Timescale = 90000;
} // namespace media
} // namespace shaka