diff options
author | jstebbins <[email protected]> | 2011-09-14 16:03:52 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-09-14 16:03:52 +0000 |
commit | 3cdb1f293da7bb6e1f506c899ced038068aeeddf (patch) | |
tree | 53552ce38e0c8f23675cbf71f4dc68cc302315b7 /libhb/reader.c | |
parent | ace57e1b754f84cad9603e7ed14aa9c6bb705461 (diff) |
Improve mpeg PS support
Adds support for MPEG-1 PS, HDDVD EVOB, and video codecs other
than mpeg1/2 in PS
Improves probing of unknown stream types by using Libav's probing
utilities
Use Libav to probe for dts profile in TS and PS files when profile is
unknown
Improves framerate detection (improved telecine detection)
Fixes preview generation for mpeg video that has only a single sequence
header
Patches Libav to handle VC-1 pulldown flags properly
Improve PS and TS stream log information
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4220 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/reader.c')
-rw-r--r-- | libhb/reader.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/libhb/reader.c b/libhb/reader.c index 96d09e96a..c8a97ed39 100644 --- a/libhb/reader.c +++ b/libhb/reader.c @@ -111,6 +111,8 @@ static int hb_reader_init( hb_work_object_t * w, hb_job_t * job ) r->stream_timing[0].valid = 1; r->stream_timing[1].id = -1; + r->demux.last_scr = -1; + if ( !job->pts_to_start ) r->start_found = 1; else @@ -201,19 +203,6 @@ static int is_audio( hb_work_private_t *r, int id ) // of the previous packet). The next four routines keep track of this // per-stream timing. -// find the per-stream timing state for 'buf' - -static stream_timing_t *find_st( hb_work_private_t *r, const hb_buffer_t *buf ) -{ - stream_timing_t *st = r->stream_timing; - for ( ; st->id != -1; ++st ) - { - if ( st->id == buf->id ) - return st; - } - return NULL; -} - // find or create the per-stream timing state for 'buf' static stream_timing_t *id_to_st( hb_work_private_t *r, const hb_buffer_t *buf, int valid ) |