File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -439,7 +439,9 @@ fn attach_control_data_channel(
439439#[ derive( Debug , Deserialize ) ]
440440#[ serde( tag = "type" , rename_all = "camelCase" ) ]
441441enum WebRtcDataChannelMessage {
442- ClientStats { stats : ClientStreamStats } ,
442+ ClientStats {
443+ stats : ClientStreamStats ,
444+ } ,
443445 StreamControl {
444446 fps : Option < u32 > ,
445447 #[ serde( rename = "forceKeyframe" ) ]
@@ -1118,7 +1120,9 @@ pub fn realtime_stream_enabled() -> bool {
11181120 } )
11191121}
11201122
1121- pub fn h264_annex_b_sample ( frame : & crate :: transport:: packet:: FramePacket ) -> anyhow:: Result < Vec < u8 > > {
1123+ pub fn h264_annex_b_sample (
1124+ frame : & crate :: transport:: packet:: FramePacket ,
1125+ ) -> anyhow:: Result < Vec < u8 > > {
11221126 let data = frame. data . as_ref ( ) ;
11231127 let description = frame. description . as_ref ( ) . map ( bytes:: Bytes :: as_ref) ;
11241128 let mut sample = Vec :: with_capacity ( data. len ( ) + description. map_or ( 0 , |bytes| bytes. len ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments