summaryrefslogtreecommitdiffstats
path: root/libhb/demuxmpeg.c
diff options
context:
space:
mode:
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;
}