From ab0a39397c7b3630ba141cc8175d5eb05ef79a7d Mon Sep 17 00:00:00 2001 From: Rodeo Date: Sun, 28 Apr 2013 21:13:47 +0000 Subject: sync: fix a hang when the avcodec encoder for silence insertion fails to open. This affects e.g. AAC Passthru with more than 6 channels. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5423 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/sync.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libhb/sync.c') diff --git a/libhb/sync.c b/libhb/sync.c index fe3d01915..3e2bbb703 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -979,9 +979,10 @@ static void InitAudio( hb_job_t * job, hb_sync_common_t * common, int i ) c->channel_layout = w->audio->config.in.channel_layout; } - if( hb_avcodec_open( c, codec, NULL, 0 ) < 0 ) + if (hb_avcodec_open(c, codec, NULL, 0) < 0) { - hb_log( "sync: avcodec_open failed" ); + hb_error("sync: avcodec_open failed"); + *job->die = 1; return; } -- cgit v1.2.3