]> granicus.if.org Git - handbrake/commitdiff
fixed audio decode issue
authorhandbrake <no-reply@handbrake.fr>
Tue, 2 Apr 2013 01:35:26 +0000 (01:35 +0000)
committerhandbrake <no-reply@handbrake.fr>
Tue, 2 Apr 2013 01:35:26 +0000 (01:35 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5373 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/deca52.c

index 1072982bb7ce3978d8537506f9f21fb9ae43e2cc..f5dac1f96c66123bc3c2a66b1213f8dbee22b492 100644 (file)
@@ -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;