Skip to content

Commit

Permalink
Fix int size not long enough
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya committed Jan 30, 2024
1 parent af6436c commit e80543e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion transcoder/src/audiostream.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func NewAudioStream(file *FileStream, idx int32) *AudioStream {
}

func (as *AudioStream) getOutPath() string {
return fmt.Sprintf("%s/segment-a%d-%%03d.ts", as.file.Out, as.index)
return fmt.Sprintf("%s/segment-a%d-%%06d.ts", as.file.Out, as.index)
}

func (as *AudioStream) getTranscodeArgs(segments string) []string {
Expand Down
2 changes: 1 addition & 1 deletion transcoder/src/videostream.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func NewVideoStream(file *FileStream, quality Quality) *VideoStream {
}

func (vs *VideoStream) getOutPath() string {
return fmt.Sprintf("%s/segment-%s-%%03d.ts", vs.file.Out, vs.quality)
return fmt.Sprintf("%s/segment-%s-%%06d.ts", vs.file.Out, vs.quality)
}

func (vs *VideoStream) getTranscodeArgs(segments string) []string {
Expand Down

0 comments on commit e80543e

Please sign in to comment.