New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add break of VideoReader loop when keyframe past requested has been reached #2706
Conversation
…eached - adds a frame reading loop break when a keyframe following the end of the last requested frame in the sequence Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
!build |
CI MESSAGE: [2098994]: BUILD STARTED |
CI MESSAGE: [2098994]: BUILD PASSED |
if (!is_first_frame) { | ||
nonkey_frame_count = 0; | ||
if (frame > req.frame + req.count) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment here. How about?
// Found a key frame past the requested range. We can stop searching (If there were missing frames in the range they won't be found after the next key frame)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
!build |
CI MESSAGE: [2101801]: BUILD STARTED |
CI MESSAGE: [2101801]: BUILD PASSED |
Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com
Why we need this PR?
Pick one, remove the rest
What happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
adds a frame reading loop break when a keyframe following the end of the last requested frame in the sequence
video_loader
NA
current test applies
NA
JIRA TASK: [NA]