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

read.c: Treat version 1 as version 0 for stsd box #2181

Merged
merged 1 commit into from
May 30, 2024

Conversation

vigneshvg
Copy link
Collaborator

According to 8.5.2.3 of ISO/IEC 14496-12:
version is set to zero. A version number of 1 shall be treated as
a version of 0.

@vigneshvg vigneshvg requested review from wantehchang and y-guyon May 30, 2024 15:59
Copy link
Collaborator

@wantehchang wantehchang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vignesh: I suggest two changes.

@y-guyon We should think about whether an unsupported version should be reported as an error or silently ignored. (This pull request follows our current policy of reporting an unsupported version as an error.)

src/read.c Outdated Show resolved Hide resolved
src/read.c Outdated Show resolved Hide resolved
According to 8.5.2.3 of ISO/IEC 14496-12:
version is set to zero. A version number of 1 shall be treated as
a version of 0.
Copy link
Collaborator

@wantehchang wantehchang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@vigneshvg vigneshvg merged commit 7886afe into AOMediaCodec:main May 30, 2024
12 checks passed
@y-guyon
Copy link
Collaborator

y-guyon commented Jun 1, 2024

@y-guyon We should think about whether an unsupported version should be reported as an error or silently ignored. (This pull request follows our current policy of reporting an unsupported version as an error.)

I do not see any problem with keeping the current policy. It can also be on a case-by-case basis once we encounter issues requiring more leniency.

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.

3 participants