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

Correctly define _reserved1 in tenc box and improve it's Const checks #30

Merged
merged 4 commits into from
Apr 23, 2023

Conversation

rlaphoenix
Copy link
Collaborator

@rlaphoenix rlaphoenix commented Apr 23, 2023

You defined _reserved1 as a Const byte, when in fact it's not. For v0 tenc boxes, it is. But not for v1 tenc boxes which use pattern-based decision-making for the Key ID and IV stuff. Therefore I've implemented the necessary changes to fully support v1 tenc boxes.

This fixes #29

Tests are successful (on Python 3.9 and older, see #23).

image

@rlaphoenix rlaphoenix force-pushed the tenc-box-patch branch 2 times, most recently from 42446d4 to 56cb3da Compare April 23, 2023 19:39
@codecov-commenter
Copy link

codecov-commenter commented Apr 23, 2023

Codecov Report

❗ No coverage uploaded for pull request base (master@47628e8). Click here to learn what that means.
Patch coverage: 85.71% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #30   +/-   ##
=========================================
  Coverage          ?   74.61%           
=========================================
  Files             ?        5           
  Lines             ?      197           
  Branches          ?        0           
=========================================
  Hits              ?      147           
  Misses            ?       50           
  Partials          ?        0           
Impacted Files Coverage Δ
src/pymp4/util.py 83.72% <80.00%> (ø)
src/pymp4/parser.py 83.07% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rlaphoenix rlaphoenix merged commit 5aa2bf8 into beardypig:master Apr 23, 2023
@rlaphoenix rlaphoenix deleted the tenc-box-patch branch April 23, 2023 21:04
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.

Definition of tenc box seems invalid or too leniant
2 participants