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 timestamps generation. Refactor the code concerning the mode change handling #60

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

varsill
Copy link
Contributor

@varsill varsill commented Mar 27, 2024

No description provided.

@varsill varsill requested a review from mat-hek March 28, 2024 09:13
@varsill
Copy link
Contributor Author

varsill commented Mar 28, 2024

Hi @gBillal ! Do you remember what was the reason for changing the prepare_timestamps implementation in this commit (while working on merging h264 and h265 parsers)?
It used to be Enum.find(au, &NALuTypes.is_vcl_nalu_type(&1.type)).timestamps and after this commit it is List.last(au).timestamps which causes problems when the last NAL unit in the AU does not have timestamps set and I wonder if I can safely revoke the old implementation.

@gBillal
Copy link
Contributor

gBillal commented Mar 28, 2024

Hi @varsill
I thought that Since we only prepend parameter sets to the access units. It would be safe to assume that the last NAL unit of the AU will contain a correct timestamp (even if it's a NVCL NAL unit).

Seems that I'm wrong.

@varsill
Copy link
Contributor Author

varsill commented Mar 28, 2024

Sure, in most cases it works just fine, it's only problematic under some very specific circumstances, upon which we unfortunately came across ;)

@varsill varsill merged commit 461710c into master Apr 2, 2024
4 checks passed
@varsill varsill deleted the fix_timestamps_generation branch April 2, 2024 08:52
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