summaryrefslogtreecommitdiffstats
path: root/libhb/sync.c
diff options
context:
space:
mode:
authoreddyg <[email protected]>2007-10-11 23:55:36 +0000
committereddyg <[email protected]>2007-10-11 23:55:36 +0000
commitd2cf0f6b0d880540c7f84b9affa6764854654408 (patch)
tree8283ede8f1ca3ef3238a4fa41238107b6096ca1c /libhb/sync.c
parent471d4423b3cbf14b134051242afa84a560ebb65d (diff)
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
Diffstat (limited to 'libhb/sync.c')
-rw-r--r--libhb/sync.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}
}