fix(ffmpeg): 0s frame handling

This commit is contained in:
Adrian Shum 2022-10-24 16:28:09 +08:00
parent 77554f272f
commit 9ccfbe5a08

View file

@ -112,7 +112,7 @@ func (av *AVContext) SelectDuration(ts time.Duration) (err error) {
}
return av.ProcessFrames(-1)
} else {
return av.ProcessFrames(1)
return av.SelectFrame(1)
}
}