ws-video: video/mkv tests (ffprobe packets, ffmpeg audio, lacing / zlib / unknown clusters / subtitles, WebM remux), zlib content compression, codec-delay trimming of non-Opus audio (AudioWrap.trim), video/y4m, containers/Avi + video/avi (WIP tests)
This commit is contained in:
1 parent
8a905a4510
commit
9411cd97c6
14 files changed
+1862
-20
No files matched your search
@@ -268,7 +268,11 @@ local function openAudio(demuxer: any, track: any): (any, Err.Err?)
|
||||
if not buf then
|
||||
return nil, err
|
||||
end
|
||||
return F.open(buf, { format = fmt, category = "audio" })
|
||||
local dec, oerr = F.open(buf, { format = fmt, category = "audio" })
|
||||
if dec and fmt ~= "opus" and type(track.codecDelay) == "number" and track.codecDelay > 0 then
|
||||
dec = AudioWrap.trim(dec, math.floor(track.codecDelay * dec.sampleRate + 0.5))
|
||||
end
|
||||
return dec, oerr
|
||||
end
|
||||
|
||||
local function withHooks(o: Options): Options
|
||||
|
||||
Reference in new issue
Block a user