summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-01-01 22:11:34 +0000
committerdynaflash <[email protected]>2008-01-01 22:11:34 +0000
commit5b716a71672b338188f6ef31676004b6e8373bf5 (patch)
treebb003cb9c7adf92da7136fcaf210d2894a9ad06d
parent8aabbd025eea6548722ac05f944e989af90b317c (diff)
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
-rwxr-xr-xlibhb/stream.c10
1 files 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;