diff --git a/packager/mpd/base/adaptation_set.cc b/packager/mpd/base/adaptation_set.cc index 71a653fabb8..b36f80a549b 100644 --- a/packager/mpd/base/adaptation_set.cc +++ b/packager/mpd/base/adaptation_set.cc @@ -291,8 +291,7 @@ std::optional AdaptationSet::GetXml() { if (subsegment_start_with_sap_ == 1) { if (!adaptation_set.SetIntegerAttribute("subsegmentStartsWithSAP", 1)) return std::nullopt; - } - else if (start_with_sap_ == 1) { + } else if (start_with_sap_ == 1) { if (!adaptation_set.SetIntegerAttribute("startWithSAP", 1)) return std::nullopt; } diff --git a/packager/mpd/base/period.cc b/packager/mpd/base/period.cc index ee8750917f3..3c63bc48c1f 100644 --- a/packager/mpd/base/period.cc +++ b/packager/mpd/base/period.cc @@ -309,8 +309,7 @@ bool Period::SetNewAdaptationSetAttributes( GetBaseCodec(media_info) == "ac-4") { new_adaptation_set->ForceStartwithSAP(1); } - } - else if (mpd_options_.dash_profile == DashProfile::kOnDemand) { + } else if (mpd_options_.dash_profile == DashProfile::kOnDemand) { if (GetBaseCodec(media_info) == "mp4a" || GetBaseCodec(media_info) == "ac-3" || GetBaseCodec(media_info) == "ec-3" ||