From: van Date: Tue, 2 Dec 2008 20:53:00 +0000 (+0000) Subject: - allow titles with video but no audio. X-Git-Tag: 0.9.4~964 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6272605a7947d17361cc4744dc0afed011c1142;p=handbrake - allow titles with video but no audio. - don't throw away previews just because we hit eof while trying to find audio info. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1993 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/scan.c b/libhb/scan.c index 26927ffbc..631fa43ef 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -168,15 +168,6 @@ static void ScanFunc( void * _data ) j++; } - /* If we don't have any audio streams left, remove the title */ - if( !hb_list_count( title->list_audio ) ) - { - hb_log("scan: ignoring title %i, no audio tracks found", title->index ); - hb_list_rem( data->list_title, title ); - free( title ); - continue; - } - i++; } @@ -463,6 +454,10 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title ) { if ( !hb_stream_read(data->stream,buf_ps) ) { + if ( vid_buf ) + { + break; + } hb_log( "Warning: Could not read data for preview %d, skipped", i + 1 ); goto skip_preview; }