]> git.videolan.org Git - x264.git/commitdiff
Fix regression: disable flash detection without B-frames
authorJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 12 Oct 2009 18:29:23 +0000 (11:29 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 12 Oct 2009 18:30:55 +0000 (11:30 -0700)
encoder/slicetype.c

index 22a9ff1b8fb1fda9cfeb046885c814c9f107031f..d27a057391f627f6db1173a713bac7cbff9bb515 100644 (file)
@@ -697,7 +697,7 @@ static int scenecut( x264_t *h, x264_mb_analysis_t *a, x264_frame_t **frames, in
     int curp0, curp1, i, maxp1 = p0 + 1;
 
     /* Only do analysis during a normal scenecut check. */
-    if( real_scenecut )
+    if( real_scenecut && h->param.i_bframe )
     {
         /* Look ahead to avoid coding short flashes as scenecuts. */
         if( h->param.i_bframe_adaptive == X264_B_ADAPT_TRELLIS )