Small fixups.

This commit is contained in:
Moritz Bunkus 2003-10-02 18:50:33 +00:00
parent 725834b7ba
commit a24bb211d5
2 changed files with 16 additions and 8 deletions

View File

@ -292,14 +292,7 @@ void cluster_helper_c::set_output(mm_io_c *nout) {
out = nout;
}
typedef struct {
vector<KaxBlockGroup *> groups;
vector<int64_t> durations;
generic_packetizer_c *source;
bool more_data, duration_mandatory;
} render_groups_t;
static void set_duration_and_timeslices(render_groups_t *rg) {
void cluster_helper_c::set_duration_and_timeslices(render_groups_t *rg) {
uint32_t i;
int64_t block_duration, def_duration;
KaxBlockGroup *group;
@ -348,6 +341,13 @@ static void set_duration_and_timeslices(render_groups_t *rg) {
}
}
/*
<+Asylum> The chicken and the egg are lying in bed next to each
other after a good hard shag, the chicken is smoking a
cigarette, the egg says "Well that answers that bloody
question doesn't it"
*/
int cluster_helper_c::render() {
KaxCluster *cluster;
KaxBlockGroup *new_block_group, *last_block_group;

View File

@ -44,6 +44,13 @@ typedef struct {
int64_t *last_packets;
} splitpoint_t;
typedef struct {
vector<KaxBlockGroup *> groups;
vector<int64_t> durations;
generic_packetizer_c *source;
bool more_data, duration_mandatory;
} render_groups_t;
class cluster_helper_c {
private:
ch_contents_t **clusters;
@ -82,6 +89,7 @@ private:
void free_contents(ch_contents_t *clstr);
void check_clusters(int num);
bool all_references_resolved(ch_contents_t *cluster);
void set_duration_and_timeslices(render_groups_t *rg);
};
extern cluster_helper_c *cluster_helper;