mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-08 11:11:51 +00:00
MPEG TS: remove continuity counter handling
It was not really acted upon. Only a debugging message would be output on continuity errors.
This commit is contained in:
parent
5a5fa29ca9
commit
6bc4e46192
@ -1240,18 +1240,6 @@ mpeg_ts_reader_c::parse_packet(unsigned char *buf) {
|
||||
return false;
|
||||
|
||||
else {
|
||||
// Check continuity counter
|
||||
if (!adf_discontinuity_indicator) {
|
||||
track->continuity_counter++;
|
||||
track->continuity_counter %= 16;
|
||||
if (hdr->get_continuity_counter() != track->continuity_counter) {
|
||||
mxdebug_if(m_debug_packet, boost::format("mpeg_ts_reader_c::parse_packet: Continuity error on PID: %1%. Continue anyway...\n") % table_pid);
|
||||
track->continuity_counter = hdr->get_continuity_counter();
|
||||
}
|
||||
|
||||
} else
|
||||
track->continuity_counter = hdr->get_continuity_counter();
|
||||
|
||||
// If PES payload size known, prevent to copy more TS payload than actually needed
|
||||
if ( (track->pes_payload_size != 0)
|
||||
&& (track->pes_payload_size < static_cast<int>(ts_payload_size + track->pes_payload->get_size())))
|
||||
@ -1439,8 +1427,6 @@ mpeg_ts_reader_c::parse_start_unit_packet(mpeg_ts_track_ptr &track,
|
||||
}
|
||||
}
|
||||
|
||||
track->continuity_counter = ts_packet_header->get_continuity_counter();
|
||||
|
||||
if ( (track->pes_payload_size != 0)
|
||||
&& (track->pes_payload_size < static_cast<int>(ts_payload_size + track->pes_payload->get_size())))
|
||||
ts_payload_size = track->pes_payload_size - track->pes_payload->get_size();
|
||||
|
@ -282,7 +282,6 @@ public:
|
||||
bool data_ready;
|
||||
int pes_payload_size; // size of the current PID payload in bytes
|
||||
byte_buffer_cptr pes_payload; // buffer with the current PID payload
|
||||
unsigned char continuity_counter; // check for PID continuity
|
||||
|
||||
bool probed_ok;
|
||||
int ptzr; // the actual packetizer instance
|
||||
@ -329,7 +328,6 @@ public:
|
||||
, data_ready(false)
|
||||
, pes_payload_size(0)
|
||||
, pes_payload(new byte_buffer_c)
|
||||
, continuity_counter(0)
|
||||
, probed_ok(false)
|
||||
, ptzr(-1)
|
||||
, m_timestamp_wrap_add{timestamp_c::ns(0)}
|
||||
|
Loading…
Reference in New Issue
Block a user