From 9c5ffcd12957fcf93c4addd7ccc478c85304d047 Mon Sep 17 00:00:00 2001 From: van Date: Mon, 30 Jun 2008 05:01:01 +0000 Subject: - fix an error in the SCR calculation that would cause an extra frame to be dropped at an SCR discontinuity. - fix a rounding error in the encx264 init_delay computation that would underestimate the delay for progressive content and cause spurious "init_delay too small" messages. - clean up the sync.c "video time didn't advance" logic and try to make the error mgs more useful for debugging frame duration problems. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1543 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/demuxmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb/demuxmpeg.c') diff --git a/libhb/demuxmpeg.c b/libhb/demuxmpeg.c index 053867931..051f2f605 100644 --- a/libhb/demuxmpeg.c +++ b/libhb/demuxmpeg.c @@ -62,7 +62,7 @@ int hb_demux_ps( hb_buffer_t * buf_ps, hb_list_t * list_es, hb_psdemux_t* state if ( scr_delta > (90*700) || scr_delta < 0 ) { ++state->scr_changes; - state->scr_offset += scr_delta - 1; + state->scr_offset += scr_delta - state->frame_duration; } state->last_scr = scr; } -- cgit v1.2.3