summaryrefslogtreecommitdiffstats
path: root/libhb/encfaac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/encfaac.c')
-rw-r--r--libhb/encfaac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/encfaac.c b/libhb/encfaac.c
index d46e8aedd..95a047ac6 100644
--- a/libhb/encfaac.c
+++ b/libhb/encfaac.c
@@ -95,11 +95,15 @@ int encfaacInit( hb_work_object_t * w, hb_job_t * job )
if( !faacEncSetConfiguration( pv->faac, cfg ) )
{
hb_log( "faacEncSetConfiguration failed" );
+ *job->die = 1;
+ return 0;
}
if( faacEncGetDecoderSpecificInfo( pv->faac, &bytes, &length ) < 0 )
{
hb_log( "faacEncGetDecoderSpecificInfo failed" );
+ *job->die = 1;
+ return 0;
}
memcpy( w->config->aac.bytes, bytes, length );
w->config->aac.length = length;