Skip to content

Fix avifDecSampleTransformItemValidateProperties()#3013

Merged
wantehchang merged 3 commits intoAOMediaCodec:mainfrom
y-guyon:satogrid
Feb 26, 2026
Merged

Fix avifDecSampleTransformItemValidateProperties()#3013
wantehchang merged 3 commits intoAOMediaCodec:mainfrom
y-guyon:satogrid

Conversation

@y-guyon
Copy link
Contributor

@y-guyon y-guyon commented Feb 9, 2026

Return BMFF_PARSE_FAILED intead of INTERNAL_ERROR on missing ispe.
Implement TODO about verifying av1C consistency.
Fix comment wrongly referring to item being a grid instead of a sato.

@wantehchang
Copy link
Collaborator

Yannis: I tried to review this PR last week, but the PR is a little long, so I didn't finish the review. Could you please rebase the PR and resolve the conflicts? Thanks.

@y-guyon y-guyon force-pushed the satogrid branch 2 times, most recently from b5ebee2 to 511dddf Compare February 20, 2026 10:45
@y-guyon
Copy link
Contributor Author

y-guyon commented Feb 20, 2026

Yannis: I tried to review this PR last week, but the PR is a little long, so I didn't finish the review. Could you please rebase the PR and resolve the conflicts? Thanks.

Done. Thanks for taking a look!

@wantehchang
Copy link
Collaborator

Yannis: There is a merge error. The new commit has the wrong commit message:
511dddf

@y-guyon
Copy link
Contributor Author

y-guyon commented Feb 23, 2026

Yannis: There is a merge error. The new commit has the wrong commit message: 511dddf

Good catch. I wonder how I messed git pull --rebase so badly.

@y-guyon y-guyon requested a review from wantehchang February 23, 2026 09:26
@y-guyon y-guyon added this to the v1.4.0 milestone Feb 25, 2026
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! I am not familiar with the code, so I didn't try to fully understand the changes.

Return BMFF_PARSE_FAILED intead of INTERNAL_ERROR on missing ispe.
Implement TODO about verifying av1C consistency.
Fix comment wrongly referring to item being a grid instead of a sato.
Also add an extra check in avifPropertyArrayFind().
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! Just one final suggestion.

default:
assert(AVIF_FALSE);
return NULL;
return kUnknown; // Easier to deal with than NULL.
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Just a comment, not a request for change.] If avifGetConfigurationPropertyName() returns NULL here, the caller can detect that it is an unknown codec type. But none of the callers check the return value, so returning a "****" string is more convenient.

@wantehchang wantehchang merged commit 0f430db into AOMediaCodec:main Feb 26, 2026
25 checks passed
@y-guyon y-guyon deleted the satogrid branch February 28, 2026 16:32
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.

2 participants