mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #2545, Refine code with space lines.
This commit is contained in:
parent
ee23e3abed
commit
ad4b648ed2
2 changed files with 17 additions and 12 deletions
|
@ -1715,19 +1715,19 @@ bool SrsRtmpFromRtcBridger::check_frame_complete(const uint16_t start, const uin
|
|||
for (uint16_t i = 0; i < cnt; ++i) {
|
||||
int index = cache_index((start + i));
|
||||
SrsRtpPacket* pkt = cache_video_pkts_[index].pkt;
|
||||
if (!pkt) {
|
||||
// fix crash when pkt->payload() if pkt is nullptr;
|
||||
continue;
|
||||
}
|
||||
SrsRtpFUAPayload2* fua_payload = dynamic_cast<SrsRtpFUAPayload2*>(pkt->payload());
|
||||
if (fua_payload) {
|
||||
if (fua_payload->start) {
|
||||
++fu_s_c;
|
||||
}
|
||||
|
||||
if (fua_payload->end) {
|
||||
++fu_e_c;
|
||||
}
|
||||
// fix crash when pkt->payload() if pkt is nullptr;
|
||||
if (!pkt) continue;
|
||||
|
||||
SrsRtpFUAPayload2* fua_payload = dynamic_cast<SrsRtpFUAPayload2*>(pkt->payload());
|
||||
if (!fua_payload) continue;
|
||||
|
||||
if (fua_payload->start) {
|
||||
++fu_s_c;
|
||||
}
|
||||
|
||||
if (fua_payload->end) {
|
||||
++fu_e_c;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue