diff options
author | van <[email protected]> | 2008-04-15 19:14:03 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-04-15 19:14:03 +0000 |
commit | 56d9caaefb91abc763be3a1d17d14d0e7e2e9059 (patch) | |
tree | c693cf6b581410cc53b55772bf1d5a68ddc9456f /libhb/internal.h | |
parent | b856292606251eafc70286eac8c5dc6e6fd9dd02 (diff) |
Move clock recovery code from reader to demuxmpeg so it sees all frames & not just the ones we happen to be encoding. This change gives a more accurate clock and allows us to once again ignore audio during pass 1 of a 2 pass encode.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1420 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/internal.h')
-rw-r--r-- | libhb/internal.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libhb/internal.h b/libhb/internal.h index 73a5502da..5f3baecc5 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -117,7 +117,13 @@ int hb_libmpeg2_clear_aspect_ratio( hb_libmpeg2_t * ); /*********************************************************************** * mpegdemux.c **********************************************************************/ -int hb_demux_ps( hb_buffer_t * ps_buf, hb_list_t * es_list ); +typedef struct { + int64_t last_scr; /* unadjusted SCR from most recent pack */ + int64_t scr_offset; /* discontinuity correction adjustment */ + int scr_changes; /* number of SCR discontinuities */ +} hb_psdemux_t; + +int hb_demux_ps( hb_buffer_t * ps_buf, hb_list_t * es_list, hb_psdemux_t * ); /*********************************************************************** * dvd.c |