ws-video: VP8 checks are strict now (inter frames merged); writer fixtures include the VP8 re-encodes
This commit is contained in:
1 parent
b0b47007dc
commit
93a7f44ce0
1 file changed
+1
-9
@@ -100,10 +100,6 @@ function C.frames(t: any, v: any, c: any, label: string, minPsnr: number?)
|
||||
while true do
|
||||
local f, err = v:nextFrame()
|
||||
if not f then
|
||||
if err and err.code == F.Err.UNSUPPORTED and string.find(err.message, "inter frames", 1, true) then
|
||||
t:note("%s: TODO inter frames not decodable yet", label) -- TEMP until ws/video-vp8 merges
|
||||
return
|
||||
end
|
||||
t:check(err == nil, label .. ": decode error " .. tostring(err))
|
||||
break
|
||||
end
|
||||
@@ -182,11 +178,7 @@ function C.seek(t: any, v: any, c: any, label: string, at: number)
|
||||
at = math.floor(v.duration * 50) / 100
|
||||
end
|
||||
v:seek(at)
|
||||
local f, ferr = v:nextFrame()
|
||||
if not f and ferr and string.find(ferr.message, "inter frames", 1, true) then
|
||||
v:reset()
|
||||
return -- TEMP until ws/video-vp8 merges
|
||||
end
|
||||
local f = v:nextFrame()
|
||||
t:check(f ~= nil and f.pts >= at - 1e-6 and f.pts < at + 0.2, label .. ": seek to " .. at .. " lands at " .. tostring(f and f.pts))
|
||||
if f and C.EXACT[v.codec] and c.frames then
|
||||
local idx = math.floor(f.pts * v.frameRate + 0.5) + 1
|
||||
|
||||
Reference in new issue
Block a user