mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Bugfix: HEVC SRT stream supports multiple PPS fields. v6.0.76 (#3722)
When the srs have multiple pps in hevc.the srs can't parse for this. problem fixed this #3604 --------- Co-authored-by: chundonglinlin <chundonglinlin@163.com> Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
add0f369c5
commit
4362df743b
9 changed files with 127 additions and 18 deletions
|
@ -1952,8 +1952,13 @@ srs_error_t SrsTsPayloadPES::decode(SrsBuffer* stream, SrsTsMessage** ppmsg)
|
|||
// check when fresh, the payload_unit_start_indicator
|
||||
// should be 1 for the fresh msg.
|
||||
if (is_fresh_msg && !packet->payload_unit_start_indicator) {
|
||||
return srs_error_new(ERROR_STREAM_CASTER_TS_PSE, "ts: PES fresh packet length=%d, us=%d, cc=%d",
|
||||
srs_warn("ts: PES fresh packet length=%d, us=%d, cc=%d",
|
||||
msg->PES_packet_length, packet->payload_unit_start_indicator, packet->continuity_counter);
|
||||
|
||||
stream->skip(stream->size() - stream->pos());
|
||||
srs_freep(msg);
|
||||
channel->msg = NULL;
|
||||
return err;
|
||||
}
|
||||
|
||||
// check when not fresh and PES_packet_length>0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue