diff --git a/packager/mpd/base/adaptation_set.cc b/packager/mpd/base/adaptation_set.cc index 050b947194..cbc4bc23c8 100644 --- a/packager/mpd/base/adaptation_set.cc +++ b/packager/mpd/base/adaptation_set.cc @@ -296,7 +296,7 @@ std::optional AdaptationSet::GetXml() { !adaptation_set.AddSupplementalProperty( "urn:mpeg:mpegB:cicp:TransferCharacteristics", std::to_string(transfer_characteristics_))) { - return base::nullopt; + return std::nullopt; } // Note: must be checked before checking segments_aligned_ (below). So that diff --git a/packager/mpd/base/adaptation_set.h b/packager/mpd/base/adaptation_set.h index 1c25890142..db4c325d28 100644 --- a/packager/mpd/base/adaptation_set.h +++ b/packager/mpd/base/adaptation_set.h @@ -181,7 +181,7 @@ class AdaptationSet { void set_codec(const std::string& codec) { codec_ = codec; }; /// @return transfer_characteristics. - const uint32_t transfer_characteristics() const { + uint32_t transfer_characteristics() const { return transfer_characteristics_; } diff --git a/packager/mpd/base/mpd_utils.h b/packager/mpd/base/mpd_utils.h index 245cf6f6b5..84b5f73575 100644 --- a/packager/mpd/base/mpd_utils.h +++ b/packager/mpd/base/mpd_utils.h @@ -11,6 +11,7 @@ #include +#include #include #include