fix(webrtc): preserve H.26x headers for new sessions

Detect random-access frames from Annex-B data and cache codec headers.
Prepend missing headers to later H.264 IDR and H.265 IRAP frames.
Forward standalone headers while WebRTC waits for a decodable frame.

Signed-off-by: BigfootACA <bigfoot@radxa.com>
This commit is contained in:
BigfootACA
2026-08-06 10:51:55 +08:00
committed by SilentWind
parent db7a845d3b
commit 9c6d8a614c
4 changed files with 224 additions and 12 deletions

View File

@@ -8,6 +8,7 @@ pub mod convert;
pub mod h264;
pub mod h264_bitstream;
pub mod h265;
pub mod h265_bitstream;
pub mod jpeg;
pub mod registry;
pub mod self_check;