Skip to content

Commit

Permalink
fix: extension guessing in video
Browse files Browse the repository at this point in the history
  • Loading branch information
vas3k authored Jul 27, 2022
1 parent bb4d0f6 commit f03f66d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pepic/processing/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ func (v *videoBackend) Convert(file *entity.ProcessingFile, newMimeType string)
}

// create temp file output
ext, _ := utils.ExtensionByMimeType(newMimeType)
newExt := ext[0]
newExt, _ := utils.ExtensionByMimeType(newMimeType)
convFilename := utils.ReplaceExt(file.Filename, newExt)
tempTransFile := path.Join(config.App.Videos.FFmpeg.TempDir, fmt.Sprintf("conv_%s", convFilename))
dst, err = os.Create(tempTransFile)
Expand Down

0 comments on commit f03f66d

Please sign in to comment.