> >> > > + * This file is part of FFmpeg.
> >> > > version.
> >> > > + * Lesser General Public License for more details.
> >> > > +#include "libavutil/intreadwrite.h"
> >> > > +#include "parser.h"
> >> > extracted seems very closely tied to the format.
> >> I think a parser could be good idea, it could be useful when remuxing ?
> >> 2, so there are no timestamps in packets coming from mpeg-ts demuxer.
> >> Parser could also store the first segment (style segment) in extradata.
> >> starting playback from middle of the mkv file.
> >> when muxing to matroska.
> > on it when demuxing from mkv too.
handle the embedded timestamps in a good way.