FFmpeg: Update AVC convert command test #3284

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-03-14 18:30:48 +01:00
parent 157c6c723a
commit 3755421945

View file

@ -30,7 +30,7 @@ func TestConvert_ToAvc(t *testing.T) {
t.Fatal(err)
}
avcFile, err := convert.ToAvc(mf, "", false, false)
avcFile, err := convert.ToAvc(mf, ffmpeg.SoftwareEncoder, false, false)
if err != nil {
t.Fatal(err)
@ -149,7 +149,7 @@ func TestConvert_AvcConvertCommand(t *testing.T) {
t.Fatal(err)
}
r, _, err := convert.AvcConvertCommand(mf, "avc1", "")
r, _, err := convert.AvcConvertCommand(mf, "avc1", ffmpeg.SoftwareEncoder)
if err != nil {
t.Fatal(err)
@ -166,7 +166,7 @@ func TestConvert_AvcConvertCommand(t *testing.T) {
t.Fatal(err)
}
r, useMutex, err := convert.AvcConvertCommand(mf, "avc1", "")
r, useMutex, err := convert.AvcConvertCommand(mf, "avc1", ffmpeg.SoftwareEncoder)
assert.False(t, useMutex)
assert.Error(t, err)