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://localhost/HandBrake/trunk@2822
b64f7644-9d1e-0410-96f1-
a4d463321fa5
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 ) );
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 ) );
}
}
- if( hb_list_count(audios) == 0 )
+ if( hb_list_count(audios) == 0 &&
+ hb_list_count(job->title->list_audio) > 0 )
{
/* Create a new audio track with default settings */
audio = calloc(1, sizeof(*audio));