Skip to content

Commit 4dbdcc4

Browse files
Added reading of color_transfer & color_primaries props
Also: - small doc tidy
1 parent 03ee62f commit 4dbdcc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

probedata.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ type Stream struct {
8080
Level int `json:"level,omitempty"`
8181
ColorRange string `json:"color_range,omitempty"`
8282
ColorSpace string `json:"color_space,omitempty"`
83+
ColorTransfer string `json:"color_transfer,omitempty"`
84+
ColorPrimaries string `json:"color_primaries,omitempty"`
8385
SampleFmt string `json:"sample_fmt,omitempty"`
8486
SampleRate string `json:"sample_rate,omitempty"`
8587
Channels int `json:"channels,omitempty"`
@@ -122,7 +124,7 @@ func (c *Chapter) EndTime() time.Duration {
122124
return time.Duration(c.EndTimeSeconds * float64(time.Second))
123125
}
124126

125-
// Name returns the value of the "title" tag of the chapter
127+
// Title returns the value of the "title" tag of the chapter
126128
func (c *Chapter) Title() string {
127129
title, _ := c.TagList.GetString("title")
128130
return title

0 commit comments

Comments
 (0)