Fix incorrect processing of VerificationFreq parameter #2740
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About
VerificationFreq
parameter of the transcoding job controls how often fast verification is re-run on an already verified O session. Fast verification involves transcoding segment with 1 trusted and 2 untrusted Os, instead of using a single O. This PR fixes incorrect processing of this parameter. Valid values are 0 and positive integers. IfVerificationFreq = 0
, fast verification logic is fully disabled. IfVerificationFreq=N>0
, then, after initial verification run for a new O session, it will run again for a segment with a probability of1 / VerificationFreq
.Issue
The
shouldSkipVerification
function usedVerificationFreq
parameter in an inverted way.VerificationFreq=1
caused fast verification to run only once, as long as verified session is available, and higher values caused fast verification to run more and more often, with a value of e.g. 40 giving a 97.5% chance of running fast verification for each new segment of the stream.