summaryrefslogtreecommitdiffstats
path: root/libhb/dvd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/dvd.c')
-rw-r--r--libhb/dvd.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libhb/dvd.c b/libhb/dvd.c
index 0e0fccf7a..29ae0c34a 100644
--- a/libhb/dvd.c
+++ b/libhb/dvd.c
@@ -491,7 +491,7 @@ static hb_title_t * hb_dvdread_title_scan( hb_dvd_t * e, int t, uint64_t min_dur
lang = lang_for_code( vts->vtsi_mat->vts_subp_attr[i].lang_code );
subtitle = calloc( sizeof( hb_subtitle_t ), 1 );
- subtitle->track = i+1;
+ subtitle->track = i;
subtitle->id = ( ( 0x20 + position ) << 8 ) | 0xbd;
snprintf( subtitle->lang, sizeof( subtitle->lang ), "%s",
strlen(lang->native_name) ? lang->native_name : lang->eng_name);
@@ -623,17 +623,20 @@ static hb_title_t * hb_dvdread_title_scan( hb_dvd_t * e, int t, uint64_t min_dur
switch( vts->vtsi_mat->vts_video_attr.display_aspect_ratio )
{
case 0:
- title->container_aspect = 4. / 3.;
+ title->container_dar.num = 4;
+ title->container_dar.den = 3;
break;
case 3:
- title->container_aspect = 16. / 9.;
+ title->container_dar.num = 16;
+ title->container_dar.den = 9;
break;
default:
hb_log( "scan: unknown aspect" );
goto fail;
}
- hb_log( "scan: aspect = %g", title->container_aspect );
+ hb_log("scan: aspect = %d:%d",
+ title->container_dar.num, title->container_dar.den);
/* This title is ok so far */
goto cleanup;