MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / update_datarate

Function update_datarate

ffserver.c:412–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412static void update_datarate(DataRateData *drd, int64_t count)
413{
414 if (!drd->time1 && !drd->count1) {
415 drd->time1 = drd->time2 = cur_time;
416 drd->count1 = drd->count2 = count;
417 } else if (cur_time - drd->time2 > 5000) {
418 drd->time1 = drd->time2;
419 drd->count1 = drd->count2;
420 drd->time2 = cur_time;
421 drd->count2 = count;
422 }
423}
424
425/* In bytes per second */
426static int compute_datarate(DataRateData *drd, int64_t count)

Callers 2

http_send_dataFunction · 0.85
http_receive_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected