summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-09-14 16:00:43 +0000
committerjstebbins <[email protected]>2009-09-14 16:00:43 +0000
commit2a28e92a6328c774307851213b6da9f18c988f2f (patch)
tree50c9253e1d821bdb73051330a3c34e087d61afc5 /libhb
parent17e2c16741aefe47497cf83e4e73fb4808024e22 (diff)
Allow dvd sources that have no audio
Removed the code that dropped titles if there was no audio. Do not add a default audio track in the CLI if there are no audios in the source git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2822 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/dvd.c6
-rw-r--r--libhb/dvdnav.c6
2 files changed, 0 insertions, 12 deletions
diff --git a/libhb/dvd.c b/libhb/dvd.c
index 39b519d4c..fa5373e79 100644
--- a/libhb/dvd.c
+++ b/libhb/dvd.c
@@ -421,12 +421,6 @@ static hb_title_t * hb_dvdread_title_scan( hb_dvd_t * e, int t )
hb_list_add( title->list_audio, audio );
}
- if( !hb_list_count( title->list_audio ) )
- {
- hb_log( "scan: ignoring title (no audio track)" );
- goto fail;
- }
-
memcpy( title->palette,
vts->vts_pgcit->pgci_srp[pgc_id-1].pgc->palette,
16 * sizeof( uint32_t ) );
diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c
index 4633f1cf6..d525b9624 100644
--- a/libhb/dvdnav.c
+++ b/libhb/dvdnav.c
@@ -588,12 +588,6 @@ static hb_title_t * hb_dvdnav_title_scan( hb_dvd_t * e, int t )
hb_list_add( title->list_audio, audio );
}
- if( !hb_list_count( title->list_audio ) )
- {
- hb_log( "scan: ignoring title (no audio track)" );
- goto fail;
- }
-
memcpy( title->palette,
ifo->vts_pgcit->pgci_srp[title_pgcn-1].pgc->palette,
16 * sizeof( uint32_t ) );