Skip to content

Commit

Permalink
Fix: get audioBitrate instead of audioRate (#14)
Browse files Browse the repository at this point in the history
* fix: get audioBitrate instead of audioRate

* fix: fix the sprintf AudioBitrate as well
  • Loading branch information
xage93 authored Jan 22, 2024
1 parent 7450039 commit a574c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions output_getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func (a *Args) GetAudioRate() []string {

// GetAudioBitrate returns the arguments for bitrate
func (a *Args) GetAudioBitrate() []string {
if a.output.audioRate != 0 {
return []string{"-b:a", fmt.Sprintf("%d", a.output.audioRate)}
if a.output.audioBitrate != 0 {
return []string{"-b:a", fmt.Sprintf("%d", a.output.audioBitrate)}
}
return nil
}
Expand Down

0 comments on commit a574c4f

Please sign in to comment.