mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
ignore when sps/pps consumed all frame.
This commit is contained in:
parent
e818f36316
commit
b319e9ff9c
1 changed files with 9 additions and 0 deletions
|
@ -405,6 +405,15 @@ int SrsMpegtsOverUdp::on_ts_video(SrsTsMessage* msg, SrsStream* avs)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// regenerat the ibp frame.
|
||||||
|
if (!avs->empty()) {
|
||||||
|
ibpframe = avs->data() + avs->pos();
|
||||||
|
ibpframe_size = avs->size() - avs->pos();
|
||||||
|
} else {
|
||||||
|
srs_info("mpegts: sps/pps frame consumed.");
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue