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 b61c969 commit 55ceecbCopy full SHA for 55ceecb
cmd/examples/decode/main.go
@@ -28,7 +28,7 @@ func main() {
28
// The audio and video streams are resampled and resized to fit the
29
// parameters we pass to the decoder.
30
mapfunc := func(stream int, par *ffmpeg.Par) (*ffmpeg.Par, error) {
31
- if par.Type() == VIDEO {
+ if stream == input.BestStream(VIDEO) {
32
// Convert frame to yuv420p as needed
33
return ffmpeg.VideoPar("yuv420p", par.WidthHeight(), par.FrameRate()), nil
34
}
0 commit comments