Repository navigation
fix(utils): fixes non monotonous dts in concatenate_video_files - #680
Conversation
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| UnusedCode | 1 minor |
| ErrorProne | 12 high |
| Security | 1 high |
| CodeStyle | 1 minor |
🟢 Metrics 0 duplication
Metric Results Duplication 0
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #680 +/- ##
==========================================
- Coverage 79.10% 79.02% -0.08%
==========================================
Files 23 23
Lines 2178 2184 +6
==========================================
+ Hits 1723 1726 +3
- Misses 455 458 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hi @wuerfelfreak, thanks for your contribution! Could you add:
|
|
I've not written many tests before. I think there are two options for testing Thanks for the guidance. |
|
I would go for the first option. Write a test that fails, raising the target error, and see if it is fixed by your patch :-) |
for more information, see https://pre-commit.ci
Drop the unused `tmp_dir` binding in `test_issue540` (F841) and move the DTS clamp out of `concatenate_video_files` into a small helper so the function is back under the complexity limit (C901). No behavior change. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ALmkPCFPECUkL8SLB5EQS
Drop the unused `tmp_dir` binding in `test_issue540` (F841) and move the DTS clamp out of `concatenate_video_files` into a small helper so the function is back under the complexity limit (C901). No behavior change.
This reverts commit 4db3028. Reverted per review feedback: this PR is scoped to moving the `ty` hook off pre-commit.ci, and the lint fixes belong in their own PR.
* ci: run ty outside pre-commit.ci * chore(changelog): add entry for running ty outside pre-commit.ci * chore(lint): fix ruff errors introduced by #680 Drop the unused `tmp_dir` binding in `test_issue540` (F841) and move the DTS clamp out of `concatenate_video_files` into a small helper so the function is back under the complexity limit (C901). No behavior change. * chore(changelog): wrap #682 entry to 80 columns * Revert "chore(lint): fix ruff errors introduced by #680" This reverts commit 4db3028. Reverted per review feedback: this PR is scoped to moving the `ty` hook off pre-commit.ci, and the lint fixes belong in their own PR. * fix(ci): install cairo and pango headers for type checks
…tmans#680) * fix concatenation frame timeing * Add test reproducing Issue 540 using example by https://github.com/erooke * Changelog * chore(fmt): auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: wuerfelfreak <> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* ci: run ty outside pre-commit.ci * chore(changelog): add entry for running ty outside pre-commit.ci * chore(lint): fix ruff errors introduced by jeertmans#680 Drop the unused `tmp_dir` binding in `test_issue540` (F841) and move the DTS clamp out of `concatenate_video_files` into a small helper so the function is back under the complexity limit (C901). No behavior change. * chore(changelog): wrap jeertmans#682 entry to 80 columns * Revert "chore(lint): fix ruff errors introduced by jeertmans#680" This reverts commit 4db3028. Reverted per review feedback: this PR is scoped to moving the `ty` hook off pre-commit.ci, and the lint fixes belong in their own PR. * fix(ci): install cairo and pango headers for type checks
Fixes Issue
Closes #540
Description
Adds a check for non monotonous dts in
concatenate_video_filesinutils.pyand adjust the dts to be monotonous.Check List
Note to reviewers
I don't know much about PyAV and video encoding so this might not be a good solution. But it works for now.