We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e853e commit 66aa19aCopy full SHA for 66aa19a
cmd/examples/decode/main.go
@@ -31,7 +31,7 @@ func main() {
31
mapfunc := func(stream int, par *ffmpeg.Par) (*ffmpeg.Par, error) {
32
if stream == input.BestStream(VIDEO) {
33
// Convert frame to yuv420p if needed, but use the same size and frame rate
34
- return ffmpeg.VideoPar("yuv420p", par.WidthHeight(), par.FrameRate()), nil
+ return ffmpeg.NewVideoPar("yuv420p", par.WidthHeight(), par.FrameRate())
35
}
36
// Ignore other streams
37
return nil, nil
0 commit comments