}
}
+ /*
+ * Initialise buffer pool
+ */
+ hb_buffer_pool_init();
+
/* CPU count detection */
hb_log( "hb_init: checking cpu count" );
h->cpu_count = hb_get_cpu_count();
title->height - (job->crop[0] + job->crop[1]),
PIX_FMT_YUV420P,
job->width, job->height, PIX_FMT_YUV420P,
- SWS_LANCZOS, NULL, NULL, NULL);
+ (uint16_t)(SWS_LANCZOS|SWS_ACCURATE_RND), NULL, NULL, NULL);
// Scale
sws_scale(context,
// Get preview context
context = sws_getContext(job->width, job->height, PIX_FMT_YUV420P,
job->width, job->height, PIX_FMT_RGBA32,
- SWS_LANCZOS, NULL, NULL, NULL);
+ (uint16_t)(SWS_LANCZOS|SWS_ACCURATE_RND), NULL, NULL, NULL);
// Create preview
sws_scale(context,
avpicture_free( &pic_scale );
avpicture_free( &pic_deint );
avpicture_free( &pic_in );
- free( buf1 );
- free( buf2 );
- free( buf3 );
- free( buf4 );
}
/**
*/
memset( audio_lang, 0, sizeof( audio_lang ) );
- if ( job->subtitle_scan || job->native_language ) {
+ if ( job->indepth_scan || job->native_language ) {
/*
* Find the first audio language that is being encoded
* If doing a subtitle scan then add all the matching subtitles for this
* language.
*/
- if ( job->subtitle_scan )
+ if ( job->indepth_scan )
{
for( i=0; i < hb_list_count( title->list_subtitle ); i++ )
{
{
/* XXX Hack */
h->job_count = hb_list_count( h->jobs );
+ h->job_count_permanent = h->job_count;
hb_lock( h->state_lock );
h->state.state = HB_STATE_WORKING;
hb_lock_close( &h->pause_lock );
free( h );
*_h = NULL;
+
}
/**