[MPlayer-dev-eng] [PATCH] Read pts for VCD in demux_mpg.c
Zuxy Meng
zuxy.meng at gmail.com
Tue Feb 27 17:36:59 CET 2007
Ciao,
2007/2/28, Nico Sabbi <nsabbi at email.it>:
> Zuxy Meng wrote:
>
> > Hi,
> >
> > This patch enables more accurate length report for VCD by fixing a typo.
> >
> >------------------------------------------------------------------------
> >
> >Index: libmpdemux/demux_mpg.c
> >===================================================================
> >--- libmpdemux/demux_mpg.c (修订版 22356)
> >+++ libmpdemux/demux_mpg.c (工作拷贝)
> >@@ -180,7 +180,8 @@
> >
> > //if seeking is allowed set has_valid_timestamps if appropriate
> > if(demuxer->seekable
> >- && demuxer->stream->type == STREAMTYPE_FILE
> >+ && (demuxer->stream->type == STREAMTYPE_FILE ||
> >+ demuxer->stream->type == STREAMTYPE_VCD)
> > && demuxer->movi_start != demuxer-> movi_end
> > )
> >
> >
>
> uhm, are you sure they are reliable and that they don't reset?
> I've always seen them rescaled to the range [0,75] minutes.
> There must be some timestamp information in stream; any info?
Sorry I didn't catch you. Each pack (== sector for VCD) carries a
timestamp just like ordinary mpg files; the original code simply fails
to make use of them.
--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
More information about the MPlayer-dev-eng
mailing list