diff --git a/processor.go b/processor.go index c37f416..63f5a0c 100644 --- a/processor.go +++ b/processor.go @@ -124,16 +124,16 @@ func (p *Processor) Process(ctx context.Context, in *imagor.Blob, params imagorp bands = 4 } } - case "max_frames": - n, _ := strconv.Atoi(filter.Args) - if err = av.ProcessFrames(n); err != nil { - return - } case "frame": n, _ := strconv.Atoi(filter.Args) if err = av.SelectFrame(n); err != nil { return } + case "max_frames": + n, _ := strconv.Atoi(filter.Args) + if err = av.ProcessFrames(n); err != nil { + return + } } } meta := av.Metadata()