Skip to content

Commit

Permalink
Adding comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
sr1990 committed Sep 2, 2023
1 parent da478b6 commit 9f44b11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packager/mpd/base/mpd_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ std::string GetAdaptationSetKey(const MediaInfo& media_info,
key.append(GetBaseCodec(media_info));

if (GetBaseCodec(media_info).find("dvh") == 0) {
// Transfer characteristics for Dolby Vision (dvh1 or dvhe) must be PQ
// irrespective of value present in SPS VUI.
key.append(":");
key.append(std::to_string(kTransferFunctionPQ));
} else if (media_info.video_info().has_transfer_characteristics()) {
Expand Down
2 changes: 2 additions & 0 deletions packager/mpd/base/period.cc
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ bool Period::SetNewAdaptationSetAttributes(
// - Common CCIP values.
// Dolby vision:
// https://professionalsupport.dolby.com/s/article/How-to-signal-Dolby-Vision-in-MPEG-DASH
// Transfer characteristics for Dolby Vision (dvh1 or dvhe) must be PQ
// irrespective of value present in SPS VUI.
if (new_adaptation_set->codec().find("dvh") == 0) {
new_adaptation_set->set_transfer_characteristics(kTransferFunctionPQ);
} else if (media_info.video_info().has_transfer_characteristics()) {
Expand Down

0 comments on commit 9f44b11

Please sign in to comment.