feat(imagvideo): max_frames(n) filter

* feat: ffmpeg max_frames option in process_frames

* test: update golden files
This commit is contained in:
Adrian Shum 2022-10-13 18:04:00 +08:00 committed by GitHub
parent f1b58fd8da
commit 2ce9e97d3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 36 additions and 17 deletions

View file

@ -124,8 +124,9 @@ func (p *Processor) Process(ctx context.Context, in *imagor.Blob, params imagorp
bands = 4
}
}
case "process_frames":
if err = av.ProcessFrames(); err != nil {
case "max_frames":
n, _ := strconv.Atoi(filter.Args)
if err = av.ProcessFrames(n); err != nil {
return
}
case "frame":