fix(ffmpeg): 0s frame handling

* handle 0 duration

* test: update golden files
This commit is contained in:
Adrian Shum 2022-10-24 16:07:51 +08:00 committed by GitHub
parent f716d9b95b
commit 77554f272f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 15 additions and 2 deletions

View file

@ -110,8 +110,10 @@ func (av *AVContext) SelectDuration(ts time.Duration) (err error) {
if err = av.SeekDuration(ts); err != nil {
return
}
return av.ProcessFrames(-1)
} else {
return av.ProcessFrames(1)
}
return av.ProcessFrames(-1)
}
func (av *AVContext) SeekPosition(f float64) error {