1
0
Fork 0
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:
winlin 2015-03-26 10:31:13 +08:00
parent e818f36316
commit b319e9ff9c

View file

@ -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;
}