From d2cf0f6b0d880540c7f84b9affa6764854654408 Mon Sep 17 00:00:00 2001 From: eddyg Date: Thu, 11 Oct 2007 23:55:36 +0000 Subject: [PATCH] Somehow this went missing as I prepared these subtitle changes for commit in 1011. Without this change encoding will hang when there is a subtitle in the fifo at a PTS discontinuity. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1021 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/sync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhb/sync.c b/libhb/sync.c index bb940790e..c73ea8cd5 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -335,6 +335,8 @@ static int SyncVideo( hb_work_object_t * w ) hb_log("Trashing subtitle 0x%x due to PTS discontinuity", sub); sub = hb_fifo_get( pv->subtitle->fifo_raw ); hb_buffer_close( &sub ); + } else { + break; } } } -- 2.40.0