scottlamb / retina

High-level RTSP multimedia streaming library, in Rust
https://crates.io/crates/retina
Apache License 2.0
244 stars 48 forks source link

H.264: do not panic when parsing sprop-parameter-sets #50

Closed valpackett closed 2 years ago

valpackett commented 2 years ago

This .unwrap() call would panic on e.g. an empty string, which it would get from fmtp:96.

Note the space — this string is produced by v4l2-rtspserver when it fails to extract SPS/PPS from the first (?) packet: https://github.com/mpromonet/v4l2rtspserver/blob/d0da0791778564958287a7332e42754d617111a8/src/H264_V4l2DeviceSource.cpp#L52

scottlamb commented 2 years ago

Released in v0.3.7.