From 5b716a71672b338188f6ef31676004b6e8373bf5 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Tue, 1 Jan 2008 22:11:34 +0000 Subject: [PATCH] Program Streams: Vans patch to set a fake duration for program streams. Thanks Van! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1159 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/stream.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libhb/stream.c b/libhb/stream.c index 7c5720330..8e5b7c8a9 100755 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -388,12 +388,12 @@ static const uint8_t *hb_ts_stream_getPEStype(hb_stream_t *stream, uint32_t pid) **********************************************************************/ static void hb_stream_duration(hb_stream_t *stream, hb_title_t *inTitle) { - // VOB Files often have exceedingly unusual PTS values in them - they will progress for a while - // and then reset without warning ! - if (strstr(stream->path,".vob") != NULL) + // XXX don't have duration code for program streams yet + // use a fake duration that should be "long enough" + if ( stream->stream_type == hb_stream_type_program ) { - // So we'll use a 'fake duration' that should give enough time ! - int64_t duration = 4 * 3600 * 90000; + // So we'll use a 'fake duration' that should give enough time ! + int64_t duration = 2 * 3600 * 90000; inTitle->duration = duration; //90LL * dvdtime2msec( &d->pgc->playback_time ); inTitle->hours = inTitle->duration / 90000 / 3600; inTitle->minutes = ( ( inTitle->duration / 90000 ) % 3600 ) / 60; -- 2.40.0