Skip to content

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

Merged
darbyjohnston merged 3 commits into
AcademySoftwareFoundation:mainfrom
darbyjohnston:bundle-image-sequences
Nov 23, 2026
Merged

darbyjohnston merged 3 commits 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

@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 66.66667% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.70%. Comparing base (0e26a8f) to head (7dfd572).

Files with missing lines Patch % Lines
src/opentimelineio/bundle.cpp 66.66% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2104      +/-   ##
==========================================
- Coverage   86.71%   86.70%   -0.01%     
==========================================
  Files         186      186              
  Lines       13757    13762       +5     
  Branches     1277     1280       +3     
==========================================
+ Hits        11929    11932       +3     
- Misses       1658     1660       +2     
  Partials      170      170              
Flag Coverage Δ
cpp-unittests 64.67% <66.66%> (-0.15%) ⬇️
py-unittests 83.87% <0.00%> (-0.04%) ⬇️

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

Files with missing lines Coverage Δ
src/opentimelineio/bundle.cpp 80.04% <66.66%> (-0.23%) ⬇️

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 0e26a8f...7dfd572. Read the comment docs.

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

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>
@timlehr
timlehr force-pushed the bundle-image-sequences branch from 9a4d451 to 9190276 Compare November 23, 2026 21:15
@darbyjohnston
darbyjohnston merged commit d3a3145 into AcademySoftwareFoundation:main Nov 23, 2026
67 checks passed
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.

3 participants