MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / getCacheDuration

Method getCacheDuration

framework/WebAssemblyPlayer/bitStreamDecoder.cpp:279–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 int bitStreamDecoder::getCacheDuration()
280 {
281 int duration = 0;
282
283 for (auto &item : mPacketQues) {
284 if (item.second.empty()) {
285 return 0;
286 }
287
288 if (item.second.back()->getInfo().dts != INT64_MIN && item.second.front()->getInfo().dts != INT64_MIN) {
289 duration = item.second.back()->getInfo().dts - item.second.front()->getInfo().dts;
290 }
291 }
292
293 return duration;
294 }
295}

Callers 1

pull_onceFunction · 0.80

Calls 3

backMethod · 0.80
frontMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected