Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit ed919f6

Browse files
author
Philip Ye
committed
fix: correct BitsPerSample unmarshal issue
1 parent 792804f commit ed919f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ffmpeg/metadata.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type Streams struct {
5555
Disposition Disposition `json:"disposition"`
5656
BitRate string `json:"bit_rate"`
5757
SampleRate string `json:"sample_rate"`
58-
BitsPerSample string `json:"bits_per_sample"`
58+
BitsPerSample int `json:"bits_per_sample"`
5959
}
6060

6161
// Tags ...
@@ -301,7 +301,7 @@ func (s Streams) GetSampleRate() string {
301301
}
302302

303303
//GetBitsPerSample ...
304-
func (s Streams) GetBitsPerSample() string {
304+
func (s Streams) GetBitsPerSample() int {
305305
return s.BitsPerSample
306306
}
307307

metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type Streams interface {
5353
GetDisposition() Disposition
5454
GetBitRate() string
5555
GetSampleRate() string
56-
GetBitsPerSample() string
56+
GetBitsPerSample() int
5757
}
5858

5959
// Tags ...

0 commit comments

Comments
 (0)