Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1662
  • Loading branch information
jeanlf committed Jan 4, 2021
1 parent 5aba276 commit b15020f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/media_tools/isom_hinter.c
Expand Up @@ -793,8 +793,12 @@ GF_Err gf_hinter_track_process(GF_RTPHinter *tkHint)
}
remain -= size;
tkHint->rtp_p->sl_header.accessUnitEndFlag = remain ? 0 : 1;
e = gf_rtp_builder_process(tkHint->rtp_p, ptr, size, (u8) !remain, samp->dataLength, duration, (u8) (descIndex + GF_RTP_TX3G_SIDX_OFFSET) );
ptr += size;
if (!size) {
GF_LOG(GF_LOG_WARNING, GF_LOG_RTP, ("[rtp hinter] Broken AVC nalu encapsulation: NALU size is 0, ignoring it\n", size));
} else {
e = gf_rtp_builder_process(tkHint->rtp_p, ptr, size, (u8) !remain, samp->dataLength, duration, (u8) (descIndex + GF_RTP_TX3G_SIDX_OFFSET) );
ptr += size;
}
tkHint->rtp_p->sl_header.accessUnitStartFlag = 0;
}
} else {
Expand Down

0 comments on commit b15020f

Please sign in to comment.