mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 08:50:13 +02:00
ensure fps is not 0.
This commit is contained in:
parent
64b79f4579
commit
79a1c41938
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ func NewVideoPipeline(rtpCodec codec.RTPCodec, display string, pipelineSrc strin
|
|||
return pipelineStr, nil
|
||||
}
|
||||
|
||||
// use default fps if not set
|
||||
if fps == 0 {
|
||||
fps = 25
|
||||
}
|
||||
|
||||
switch rtpCodec.Name {
|
||||
case codec.VP8().Name:
|
||||
if hwenc == "VAAPI" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue