int encfaacInit( hb_work_object_t * w, hb_job_t * job )
{
hb_work_private_t * pv = calloc( 1, sizeof( hb_work_private_t ) );
- w->private_data = pv;
-
faacEncConfigurationPtr cfg;
+ uint8_t * bytes;
+ unsigned long length;
+
+ w->private_data = pv;
pv->job = job;
hb_log( "faacEncSetConfiguration failed" );
}
- uint8_t * bytes;
- unsigned long length;
if( faacEncGetDecoderSpecificInfo( pv->faac, &bytes, &length ) < 0 )
{
hb_log( "faacEncGetDecoderSpecificInfo failed" );
x264_param_t param;
x264_nal_t * nal;
int nal_count;
+ int i, size;
hb_work_private_t * pv = calloc( 1, sizeof( hb_work_private_t ) );
w->private_data = pv;
hb_log( "encx264: opening libx264 (pass %d)", job->pass );
pv->x264 = x264_encoder_open( ¶m );
- int i, size;
w->config->mpeg4.length = 0;
x264_encoder_headers( pv->x264, &nal, &nal_count );
int croppedAspect = title->aspect * title->height * croppedWidth /
croppedHeight / title->width;
int addCrop;
+ int i, w, h;
if( aspect <= 0 )
{
}
/* Compute a resolution from the number of pixels and aspect */
- int i, w, h;
for( i = 0;; i++ )
{
w = 16 * i;
hb_audio_t * audio;
int i;
+ AVFormatContext * oc;
+ AVStream *st;
+ AVFormatParameters params;
register_protocol(&file_protocol);
movenc_init();
- AVFormatContext * oc = av_alloc_format_context();
+ oc = av_alloc_format_context();
if( job->mux & HB_MUX_PSP )
{
snprintf( oc->filename, sizeof( oc->filename ),
"%s", job->file );
- AVStream *st;
-
st = av_new_stream( oc, oc->nb_streams );
if( !st )
{
return 1;
}
- AVFormatParameters params;
memset( ¶ms, 0, sizeof( params ) );
if( av_set_parameters( oc, ¶ms ) < 0 )
{
hb_work_object_t * w;
hb_audio_t * audio;
hb_subtitle_t * subtitle;
+ int done;
title = job->title;
HB_LOW_PRIORITY );
}
- int done = 0;
+ done = 0;
w = hb_list_item( job->list_work, 0 );
w->init( w, job );
while( !*job->die )