You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(vp9): improve encoder/decoder allocations and add shutdown comments
- Change next_pts duration default from 0 to 1 so libvpx rate-control
always sees a non-zero duration (Fix#5).
- Add comment about data loss on explicit encoder shutdown (Fix#7).
- Use Bytes::copy_from_slice in drain_packets instead of .to_vec() +
Bytes::from(), avoiding an intermediate Vec allocation per encoded
packet (Fix#9).
- Use Vec::with_capacity(1) in decode_packet since most VP9 packets
produce exactly one frame, avoiding a heap alloc in the common
case (Fix#10).
Co-Authored-By: Claudio Costa <cstcld91@gmail.com>
0 commit comments