diff options
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 ) |