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
|
return pipelineStr, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// use default fps if not set
|
||||||
|
if fps == 0 {
|
||||||
|
fps = 25
|
||||||
|
}
|
||||||
|
|
||||||
switch rtpCodec.Name {
|
switch rtpCodec.Name {
|
||||||
case codec.VP8().Name:
|
case codec.VP8().Name:
|
||||||
if hwenc == "VAAPI" {
|
if hwenc == "VAAPI" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue