diff options
author | jstebbins <[email protected]> | 2011-10-11 00:44:16 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-10-11 00:44:16 +0000 |
commit | 52aa39060e3f5df1768afe5353690d1dcb87743e (patch) | |
tree | c65de9b097d734a92b9cc8a1bb896259369c3cfc /libhb/stream.c | |
parent | c800a995fda7b9516a585a1fb3f5daeda3a86f80 (diff) |
fix log spam during batch scan of TS files
IDRs detected before generating previews were not being remembered. So
we started decoding on non-IDR boundaries which generates a lot of
decoder log spam.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4279 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/stream.c')
-rw-r--r-- | libhb/stream.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index 4572b9241..f9200ef63 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -859,6 +859,10 @@ hb_stream_t * hb_stream_open( char *path, hb_title_t *title, int scan ) } return d; } + else if( title && !( title->flags & HBTF_NO_IDR ) ) + { + d->has_IDRs = 1; + } /* * opening for scan - delete any saved state then (re)scan the stream. @@ -1103,6 +1107,8 @@ hb_title_t * hb_stream_title_scan(hb_stream_t *stream, hb_title_t * title) update_ts_streams( stream, stream->pmt_info.PCR_PID, 0, -1, P, NULL ); } + // IDRs will be search for in hb_stream_duration + stream->has_IDRs = 0; hb_stream_duration(stream, title); // One Chapter |