summaryrefslogtreecommitdiffstats
path: root/libhb/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/sync.c')
-rw-r--r--libhb/sync.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index 0b38fa1f3..ac9c95885 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -1254,7 +1254,9 @@ static void InitAudio( hb_job_t * job, hb_sync_common_t * common, int i )
int ret = avcodec_encode_audio2( c, &pkt, &frame, &got_packet);
if ( ret < 0 )
{
- hb_log( "sync: avcodec_encode_audio failed" );
+ hb_log("sync: track %d, avcodec_encode_audio() failed, dropping video to sync",
+ w->audio->config.out.track);
+ sync->drop_video_to_sync = 1;
break;
}
@@ -1263,6 +1265,12 @@ static void InitAudio( hb_job_t * job, hb_sync_common_t * common, int i )
sync->silence_size = pkt.size;
break;
}
+ else if (ii + 1 == 10)
+ {
+ hb_log("sync: track %d, failed to get output packet, dropping video to sync",
+ w->audio->config.out.track);
+ sync->drop_video_to_sync = 1;
+ }
}
free( zeros );
hb_avcodec_close( c );