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

Function compute_datarate

ffserver.c:426–432  ·  view source on GitHub ↗

In bytes per second */

Source from the content-addressed store, hash-verified

424
425/* In bytes per second */
426static int compute_datarate(DataRateData *drd, int64_t count)
427{
428 if (cur_time == drd->time1)
429 return 0;
430
431 return ((count - drd->count1) * 1000) / (cur_time - drd->time1);
432}
433
434
435static void start_children(FFStream *feed)

Callers 1

compute_statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected