Skip to content
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

Fix flattening tracks sometimes splits contiguous clips into segments issue #1818

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rameshbabuvfxtd
Copy link

@rameshbabuvfxtd rameshbabuvfxtd commented Dec 9, 2024

This pull request fixes the flattening tracks issue. When an invisible item like Gap is on an upper track, it chops the clip below when flattening.

Fixes #1635

Example of flatten stack:

The source edit file contains two tracks: the top track has two gaps, and the bottom track has one clip.

source

Before the fix

When the flattening process was performed, it incorrectly split the clip into two segments, which was not the intended behavior.

before

After the fix

The flattening process now correctly maintains the clip as a single segment, ensuring that the track contains one continuous clip.

after

Reference associated tests.
The test_stack_algo.cpp file has been updated to include new tests for the flatten_stack function.

  • These tests cover scenarios where gaps are placed over clips, ensuring that the clips remain uncut and are correctly flattened.

Copy link

linux-foundation-easycla bot commented Dec 9, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: rameshbabuvfxtd / name: Ramesh Maddhu (e875424)

…uous clips issue and add tests

Signed-off-by: Ramesh Maddhu <[email protected]>
Signed-off-by: Mark Reid <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant