2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
13 static constexpr int MP4_BOX_HEADER_SIZE
= 8;
18 static int GetCodecPriority(const std::string
& codec
);
21 * \brief Make a FourCC code as unsigned integer value
22 * \param c1 The first FourCC char
23 * \param c2 The second FourCC char
24 * \param c3 The third FourCC char
25 * \param c4 The fourth FourCC char
26 * \return The FourCC as unsigned integer value
28 static constexpr uint32_t MakeFourCC(char c1
, char c2
, char c3
, char c4
)
30 return ((static_cast<uint32_t>(c1
) << 24) | (static_cast<uint32_t>(c2
) << 16) |
31 (static_cast<uint32_t>(c3
) << 8) | (static_cast<uint32_t>(c4
)));