refactor(ffmpeg): process on select frame
* refactor(ffmpeg): process on select frame * reset golden * test: update golden files
This commit is contained in:
parent
4fe4a1561a
commit
da15744b3d
10 changed files with 11 additions and 11 deletions
|
|
@ -97,6 +97,9 @@ func (av *AVContext) SelectFrame(n int) (err error) {
|
|||
nn = av.thumbContext.n - 1
|
||||
}
|
||||
av.selectedIndex = nn
|
||||
if err = av.ProcessFrames(-1); err != nil {
|
||||
return
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -72,9 +72,6 @@ func TestAVContext(t *testing.T) {
|
|||
if frame > -1 {
|
||||
require.NoError(t, av.SelectFrame(frame))
|
||||
}
|
||||
if frame != 9999 {
|
||||
require.NoError(t, av.ProcessFrames(-1))
|
||||
}
|
||||
}
|
||||
meta := av.Metadata()
|
||||
metaBuf, err := json.Marshal(meta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue