]> granicus.if.org Git - handbrake/commitdiff
fix log spam during batch scan of TS files
authorjstebbins <jstebbins.hb@gmail.com>
Tue, 11 Oct 2011 00:44:16 +0000 (00:44 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Tue, 11 Oct 2011 00:44:16 +0000 (00:44 +0000)
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

libhb/stream.c

index 4572b9241f84920cbb6d2c295b620c6a203ac941..f9200ef63f9359f85ac6c0310041c4032b62a1ee 100644 (file)
@@ -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