]> granicus.if.org Git - libx264/commitdiff
Fix regression: disable flash detection without B-frames
authorFiona Glaser <fiona@x264.com>
Mon, 12 Oct 2009 18:29:23 +0000 (11:29 -0700)
committerFiona Glaser <fiona@x264.com>
Mon, 12 Oct 2009 18:30:55 +0000 (11:30 -0700)
encoder/slicetype.c

index ee66f2e4a38eacfc51ca2dfd01e2abc328844cc9..e4bd005290c423b3aa4e6e31dada9ac94cbb7ff3 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 )