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

make h264 nalu parsing optional #268

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

jech
Copy link
Member

@jech jech commented Apr 15, 2024

  • Convert H264Packet.doPackaging to append style
  • Make parsing of H.264 NALUs optional

This is a follow-up to #266 and is related to #267.

Not a big deal, avoids a couple of allocations for every
STAP-A packet.
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 86.05%. Comparing base (74a9dc7) to head (0d6707b).

❗ Current head 0d6707b differs from pull request most recent head 37bc343. Consider uploading reports for the commit 37bc343 to get more accurate results

Files Patch % Lines
codecs/h264_packet.go 75.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #268      +/-   ##
==========================================
- Coverage   86.21%   86.05%   -0.17%     
==========================================
  Files          22       22              
  Lines        1734     1742       +8     
==========================================
+ Hits         1495     1499       +4     
- Misses        203      206       +3     
- Partials       36       37       +1     
Flag Coverage Δ
go 86.05% <75.00%> (-0.17%) ⬇️
wasm 85.59% <75.00%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Sean-Der Sean-Der force-pushed the make-h264-nalu-parsing-optional branch 2 times, most recently from 83ede2c to a6e0563 Compare April 23, 2024 03:36
SetZeroAllocation enables a higher performance depacketizer, with a
reduced feature set. Currently only enabled for H264.

By default, the H264Packet.Unmarshal performs reassembly
of FU-A NALUs.  Not only is this ineficient, it also assumes
that no packet reordering or packet loss ever happens.
@Sean-Der Sean-Der force-pushed the make-h264-nalu-parsing-optional branch from a6e0563 to 37bc343 Compare April 23, 2024 03:39
@Sean-Der Sean-Der merged commit a663858 into pion:master Apr 23, 2024
9 of 12 checks passed
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