Skip to content

Fix image sequences with a frame step in bundles - #2104

Open
darbyjohnston wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
darbyjohnston:bundle-image-sequences
Open

darbyjohnston wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
darbyjohnston:bundle-image-sequences

Conversation

@darbyjohnston

Copy link
Copy Markdown
Collaborator

This PR fixes image sequences with a frame step in bundles, where only every other image was copied for a frame step of 2. It also counts negative frame steps as errors, which covers the bundle part of #2088.

Assisted-by: Claude Code / Claude Opus 5.5

Writing a bundle stepped through the images of a sequence by the frame
step, but target_url_for_image_number() takes an image index and applies
the frame step itself. A sequence with a frame step of 2 was missing half
of its images in the bundle.

A frame step that is not positive is now an error. A step of zero could
make writing the bundle loop forever, as found in AcademySoftwareFoundation#2088.

Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
@darbyjohnston darbyjohnston added the bug A problem, flaw, or broken functionality. label Nov 20, 2026
@darbyjohnston darbyjohnston added this to the 1.0 Release milestone Nov 20, 2026
@codecov-commenter

codecov-commenter commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.56%. Comparing base (b0af5bf) to head (9a4d451).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/opentimelineio/bundle.cpp 57.14% 3 Missing ⚠️

❌ Your changes status has failed because you have indirect coverage changes. Learn more about Unexpected Coverage Changes and reasons for indirect coverage changes.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2104      +/-   ##
==========================================
+ Coverage   83.65%   86.56%   +2.90%     
==========================================
  Files         184      185       +1     
  Lines       13696    13707      +11     
  Branches     1275     1279       +4     
==========================================
+ Hits        11458    11866     +408     
+ Misses       2066     1669     -397     
  Partials      172      172              
Flag Coverage Δ
cpp-unittests 64.67% <57.14%> (?)
py-unittests 83.63% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/opentimelineio/bundle.cpp 78.72% <57.14%> (+29.38%) ⬆️

... and 14 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b0af5bf...9a4d451. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A problem, flaw, or broken functionality.

Projects

Development

Successfully merging this pull request may close these issues.

2 participants