1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

h264 packet done, chrome play well

This commit is contained in:
HuyaJohn 2020-03-11 04:21:44 -07:00
parent e831f3254a
commit da72caf8b9
6 changed files with 169 additions and 297 deletions

View file

@ -216,10 +216,10 @@ SrsSharedPtrMessage::SrsSharedPtrPayload::~SrsSharedPtrPayload()
srs_freepa(payload);
for (int i = 0; i < nb_rtp_fragments; ++i) {
srs_freep(rtp_fragments[i].bytes);
srs_freepa(rtp_fragments[i].bytes);
}
if (nb_rtp_fragments) {
if (rtp_fragments != NULL && nb_rtp_fragments > 0) {
srs_freepa(rtp_fragments);
}
}