summaryrefslogtreecommitdiffstats
path: root/libhb/demuxmpeg.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-06-30 05:01:01 +0000
committervan <[email protected]>2008-06-30 05:01:01 +0000
commit9c5ffcd12957fcf93c4addd7ccc478c85304d047 (patch)
tree077a4794221f0705ddae3f3879e13e0b3ad95a08 /libhb/demuxmpeg.c
parentda80bb8d441e3c12260f2f1bc0fff218112cb42d (diff)
- 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
Diffstat (limited to 'libhb/demuxmpeg.c')
-rw-r--r--libhb/demuxmpeg.c2
1 files changed, 1 insertions, 1 deletions
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;
}