mkvparser: Make omitted values detectable in the Colour element.

Add constants that allow users to determine when an element or value
was omitted from Colour and its child elements.

Change-Id: If909274850127938a456f2d0a1e490dcbb9c1bde
This commit is contained in:
Tom Finegan
2016-02-10 09:14:34 -08:00
parent 41a9147f2a
commit ae4ae7ef77
2 changed files with 19 additions and 10 deletions

View File

@@ -14,6 +14,7 @@
#endif
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstring>
@@ -28,6 +29,8 @@
#endif
namespace mkvparser {
const double MasteringMetadata::kValueNotPresent = DBL_MAX;
const long long Colour::kValueNotPresent = LLONG_MAX;
#ifdef MSC_COMPAT
inline bool isnan(double val) { return !!_isnan(val); }