summaryrefslogtreecommitdiffstats
path: root/libhb/sync.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-03-16 06:13:33 +0000
committervan <[email protected]>2008-03-16 06:13:33 +0000
commit764c1ac7a990465199b5ee4e4c4e348383ba34c1 (patch)
treeaccb5de6802b68d81550bee4040b12e134a9c05e /libhb/sync.c
parentdced078041d66034f53d72cc282055a50a2d0687 (diff)
Should have removed this as part of the r1341 checkin - we now add silence based only on gaps in the timestamp sequence. The heuristic of looking at what fifos are full or empty can misbehave based on random variation in the thread scheduling.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1342 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r--libhb/sync.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index 460d175ff..2a4818af3 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -749,28 +749,6 @@ static int NeedSilence( hb_work_object_t * w, hb_audio_t * audio, int i )
}
return 1;
}
-
- if( hb_fifo_is_full( job->fifo_mpeg2 ) &&
- hb_fifo_is_full( job->fifo_raw ) &&
- hb_fifo_is_full( job->fifo_sync ) &&
- hb_fifo_is_full( job->fifo_render ) &&
- hb_fifo_is_full( job->fifo_mpeg4 ) )
- {
- if ( sync->start_silence == 0 )
- {
- /* Too much video and no audio, oh-oh */
- hb_log("sync: have video but no audio, adding silence to audio %d", i);
- sync->start_silence = sync->next_pts;
- }
- return 1;
- }
-
- if ( sync->start_silence )
- {
- hb_log( "sync: added %d ms of silence to audio %d",
- (int)((sync->next_pts - sync->start_silence) / 90), i );
- sync->start_silence = 0;
- }
return 0;
}