We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac19894 commit 4cec824Copy full SHA for 4cec824
src/ustreamer/stream.c
@@ -433,7 +433,10 @@ static void *_h264_thread(void *v_ctx) {
433
goto decref;
434
}
435
436
- const uint fps_limit = US_MAX(stream->run->h264_enc->run->fps_limit, stream->desired_fps);
+ uint fps_limit = stream->run->h264_enc->run->fps_limit;
437
+ if (stream->desired_fps > 0 && (fps_limit == 0 || stream->desired_fps < fps_limit)) {
438
+ fps_limit = stream->desired_fps;
439
+ }
440
if (fps_limit > 0) {
441
const uint captured_fps = us_fpsi_get(stream->run->http->captured_fpsi, NULL);
442
take = ceilf((float)captured_fps / (float)fps_limit);
0 commit comments