FFmpeg: Update AVC convert command test #3284
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
157c6c723a
commit
3755421945
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ func TestConvert_ToAvc(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
avcFile, err := convert.ToAvc(mf, "", false, false)
|
avcFile, err := convert.ToAvc(mf, ffmpeg.SoftwareEncoder, false, false)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
@ -149,7 +149,7 @@ func TestConvert_AvcConvertCommand(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
r, _, err := convert.AvcConvertCommand(mf, "avc1", "")
|
r, _, err := convert.AvcConvertCommand(mf, "avc1", ffmpeg.SoftwareEncoder)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
@ -166,7 +166,7 @@ func TestConvert_AvcConvertCommand(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
r, useMutex, err := convert.AvcConvertCommand(mf, "avc1", "")
|
r, useMutex, err := convert.AvcConvertCommand(mf, "avc1", ffmpeg.SoftwareEncoder)
|
||||||
|
|
||||||
assert.False(t, useMutex)
|
assert.False(t, useMutex)
|
||||||
assert.Error(t, err)
|
assert.Error(t, err)
|
||||||
|
|
Loading…
Reference in a new issue