mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +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
|
@ -404,6 +404,15 @@ int SrsMpegtsOverUdp::on_ts_video(SrsTsMessage* msg, SrsStream* avs)
|
|||
}
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue