We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b620a2 commit ab55925Copy full SHA for ab55925
test/writing.jl
@@ -200,7 +200,7 @@ end
200
@testset "Encoding video with float frame rates" begin
201
n = 100
202
fr = 29.5 # 59 // 2
203
- target_dur = n / fr
+ target_dur = round(n / fr, digits = 6) # ffmpeg uses 6 digits of precision
204
@testset "Encoding with frame rate $(float(fr))" begin
205
imgstack = map(x -> rand(UInt8, 100, 100), 1:n)
206
encoder_options = (color_range = 2, crf = 0, preset = "medium")
@@ -211,6 +211,6 @@ end
211
command = VideoIO.FFMPEG.ffprobe,
212
collect = true,
213
)
214
- @test parse(Float64, measured_dur_str[1]) ≈ target_dur
+ @test parse(Float64, measured_dur_str[1]) == target_dur
215
end
216
0 commit comments