int avc;
int type;
int tracknum;
+ int tracktype;
int disabled;
int64_t nextpts;
}
tr->tracknum = ++tracknum;
+ tr->tracktype = tracktype;
mkm->has_video |= (tracktype == 1);
t = htsbuf_queue_alloc(0);
nxt = ts_rescale(t->nextpts, 1000000000 / MATROSKA_TIMESCALE);
pts = ts_rescale(pts, 1000000000 / MATROSKA_TIMESCALE);
- if(mkm->totduration < nxt)
+ if((t->tracktype == 1 || t->tracktype == 2) && mkm->totduration < nxt)
mkm->totduration = nxt;
delta = pts - mkm->cluster_tc;