fix(ffmpeg): 0s frame handling
* handle 0 duration * test: update golden files
This commit is contained in:
parent
f716d9b95b
commit
77554f272f
20 changed files with 15 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue