File tree Expand file tree Collapse file tree 1 file changed +23
-22
lines changed
Expand file tree Collapse file tree 1 file changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -137,28 +137,29 @@ impl ControllerActor {
137137
138138 // Level 3.1 to 4.1. This is mainly to support clients that don't handle
139139 // level-asymmetry-allowed=true properly.
140- let baseline_levels = [ 0x1f , 0x20 , 0x28 , 0x29 ] ;
141- let mut pt = 96 ; // start around 96–127 range for dynamic types
142-
143- for level in & baseline_levels {
144- // Baseline
145- codec_config. add_h264 (
146- pt. into ( ) ,
147- Some ( ( pt + 1 ) . into ( ) ) , // RTX PT
148- true ,
149- 0x420000 | level,
150- ) ;
151- pt += 2 ;
152-
153- // Constrained Baseline
154- codec_config. add_h264 (
155- pt. into ( ) ,
156- Some ( ( pt + 1 ) . into ( ) ) , // RTX PT
157- true ,
158- 0x42e000 | level,
159- ) ;
160- pt += 2 ;
161- }
140+ // let baseline_levels = [0x1f, 0x20, 0x28, 0x29];
141+ // let mut pt = 96; // start around 96–127 range for dynamic types
142+ //
143+ // for level in &baseline_levels {
144+ // // Baseline
145+ // codec_config.add_h264(
146+ // pt.into(),
147+ // Some((pt + 1).into()), // RTX PT
148+ // true,
149+ // 0x420000 | level,
150+ // );
151+ // pt += 2;
152+ //
153+ // // Constrained Baseline
154+ // codec_config.add_h264(
155+ // pt.into(),
156+ // Some((pt + 1).into()), // RTX PT
157+ // true,
158+ // 0x42e000 | level,
159+ // );
160+ // pt += 2;
161+ // }
162+ codec_config. enable_h264 ( true ) ;
162163
163164 // TODO: OBS only supports Baseline level 3.1
164165 // // ESP32-P4 supports up to 1080p@30fps
You can’t perform that action at this time.
0 commit comments