[MPlayer-dev-eng] [PATCH] Read pts for VCD in demux_mpg.c
Nico Sabbi
nsabbi at email.it
Tue Feb 27 17:06:15 CET 2007
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?
> {
>@@ -195,7 +196,7 @@
> float first_pts = read_first_mpeg_pts_at_position(demuxer, demuxer->movi_start);
> if(first_pts != -1.0)
> {
>- float middle_pts = read_first_mpeg_pts_at_position(demuxer, (demuxer->movi_end - demuxer->movi_start)/2);
>+ float middle_pts = read_first_mpeg_pts_at_position(demuxer, (demuxer->movi_end + demuxer->movi_start)/2);
>
>
am I blind or this is cosmetics?
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Crea il tuo sito web dinamico con PHP e MySQL - VideoCorso professionale direttamente nel tuo computer. Trucchi e segreti
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?midQ42&d'-2
More information about the MPlayer-dev-eng
mailing list