Skip to content

Commit

Permalink
fix fmt error args bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacsjep committed Jan 27, 2024
1 parent 4724734 commit ebc95cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/scaling/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ func main() {
astiav.NewSoftwareScaleContextFlags(astiav.SoftwareScaleContextFlagBilinear),
)
if err != nil {
log.Fatal(fmt.Errorf("main: creating software scale context failed: %w"), err)
log.Fatal(fmt.Errorf("main: creating software scale context failed: %w", err))
}
defer swsCtx.Free()

// Scale frame
if err := swsCtx.ScaleFrame(srcFrame, dstFrame); err != nil {
log.Fatal(fmt.Errorf("main: scale frame failed: %w"), err)
log.Fatal(fmt.Errorf("main: scale frame failed: %w", err))
}

// Guess destination image format
Expand Down

0 comments on commit ebc95cd

Please sign in to comment.