-
Notifications
You must be signed in to change notification settings - Fork 23
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
h264: fix DTS extraction in case of long NALUs #98
Conversation
@aler9 review my code. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #98 +/- ##
==========================================
- Coverage 84.21% 84.16% -0.06%
==========================================
Files 71 71
Lines 5532 5533 +1
==========================================
- Hits 4659 4657 -2
- Misses 650 652 +2
- Partials 223 224 +1 ☔ View full report in Codecov by Sentry. |
Hello, the problem of this PR is that it strongly decreases performance, since NALUS can be really long, and if the truncation is removed, the entire NALU is scanned and copied in another buffer. Just edit the truncation to the max possible extent needed to extract the POC, that should be
|
I applied review. |
i improved performance a little and merged, thanks. |
The minimum bytes to estimate getPictureOrderCount is not 6.
A failure may occur when reading picOrderCntLsb due to bits truncated by EmulationPreventionRemove.
My idea is that you shouldn't cut it with [:6], you should pass the whole thing.