Skip to content

Commit 66aa19a

Browse files
authored
Update main.go
1 parent 80e853e commit 66aa19a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/examples/decode/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func main() {
3131
mapfunc := func(stream int, par *ffmpeg.Par) (*ffmpeg.Par, error) {
3232
if stream == input.BestStream(VIDEO) {
3333
// Convert frame to yuv420p if needed, but use the same size and frame rate
34-
return ffmpeg.VideoPar("yuv420p", par.WidthHeight(), par.FrameRate()), nil
34+
return ffmpeg.NewVideoPar("yuv420p", par.WidthHeight(), par.FrameRate())
3535
}
3636
// Ignore other streams
3737
return nil, nil

0 commit comments

Comments
 (0)