From f66a59f1df6a016cb99940dcee1b0f183112d3e5 Mon Sep 17 00:00:00 2001 From: handbrake Date: Tue, 2 Apr 2013 01:35:26 +0000 Subject: [PATCH] fixed audio decode issue git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5373 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/deca52.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/deca52.c b/libhb/deca52.c index 1072982bb..f5dac1f96 100644 --- a/libhb/deca52.c +++ b/libhb/deca52.c @@ -337,7 +337,7 @@ static hb_buffer_t* Decode(hb_work_object_t *w) double frame_dur = (6. * 256. * 90000.) / pv->rate; double pts; - if (hb_gui_use_hwd_flag == 1) + if (hb_gui_use_hwd_flag == 1 && ipts != -1) pts = ((double)ipts >= pv->next_expected_pts) ? (double)ipts : pv->next_expected_pts; else pts = (ipts != -1) ? (double)ipts : pv->next_expected_pts; -- 2.40.0