mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +00:00
Assign consecutive numbers to all created packet_t objects.
This commit is contained in:
parent
e64f94534a
commit
3513341664
@ -36,6 +36,8 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
int64_t packet_t::packet_number_counter = 0;
|
||||
|
||||
packet_t::~packet_t() {
|
||||
vector<unsigned char *>::iterator i;
|
||||
|
||||
|
@ -94,6 +94,8 @@ enum default_track_priority_e {
|
||||
#define FMT_TID "'%s' track %lld: "
|
||||
|
||||
struct packet_t {
|
||||
static int64_t packet_number_counter;
|
||||
|
||||
KaxBlockGroup *group;
|
||||
KaxBlock *block;
|
||||
KaxCluster *cluster;
|
||||
@ -113,7 +115,7 @@ struct packet_t {
|
||||
group(NULL), block(NULL), cluster(NULL), data(NULL), length(0),
|
||||
ref_priority(0), time_factor(1),
|
||||
timecode(0), bref(0), fref(0), duration(0),
|
||||
packet_num(0),
|
||||
packet_num(packet_number_counter++),
|
||||
assigned_timecode(0), unmodified_assigned_timecode(0),
|
||||
unmodified_duration(0),
|
||||
duration_mandatory(false), superseeded(false), gap_following(false),
|
||||
@ -128,7 +130,7 @@ struct packet_t {
|
||||
ref_priority(0), time_factor(1),
|
||||
timecode(n_timecode), bref(n_bref), fref(n_fref),
|
||||
duration(n_duration),
|
||||
packet_num(0),
|
||||
packet_num(packet_number_counter++),
|
||||
assigned_timecode(0), unmodified_assigned_timecode(0),
|
||||
unmodified_duration(0),
|
||||
duration_mandatory(false), superseeded(false), gap_following(false),
|
||||
@ -143,7 +145,7 @@ struct packet_t {
|
||||
ref_priority(0), time_factor(1),
|
||||
timecode(n_timecode), bref(n_bref), fref(n_fref),
|
||||
duration(n_duration),
|
||||
packet_num(0),
|
||||
packet_num(packet_number_counter++),
|
||||
assigned_timecode(0), unmodified_assigned_timecode(0),
|
||||
unmodified_duration(0),
|
||||
duration_mandatory(false), superseeded(false), gap_following(false),
|
||||
|
Loading…
Reference in New Issue
Block a user