From 4762d7c98b6b5d43b27116ba8b9cd0634312d86c Mon Sep 17 00:00:00 2001 From: igorshevach Date: Wed, 8 Nov 2023 00:48:50 +0200 Subject: [PATCH] - typo --- transcoder/utils/throttler.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/transcoder/utils/throttler.c b/transcoder/utils/throttler.c index fbffd868..d63a6f3c 100644 --- a/transcoder/utils/throttler.c +++ b/transcoder/utils/throttler.c @@ -80,16 +80,16 @@ getFrameRateFromMediaInfo( static int64_t calculateThrottleWindow(samples_stats_t *stats,AVRational targetFramerate){ + // during startup frame rate is not stable and usually is high + // due to system delays related to various factors. therefore. + // we must work with high pressures in small intervals of time. + // In order to not overshoot we take smaller intervals proportional to + // time passed since beginning. if(targetFramerate.den == 0) { if(stats->dtsPassed < 90000) { return av_rescale(1000*1000,stats->dtsPassed , 90000); } } else if(stats->totalFrames * targetFramerate.den < targetFramerate.num) { - // during startup frame rate is not stable and usually is high - // due to system delays related to various factors. therefore. - // we must work with high pressures in small intervals of time. - // In order to not overshoot we take smaller intervals proportional to - // time passed since beginning. return av_rescale_q(1000*1000, (AVRational){stats->totalFrames,1}, targetFramerate);