From: Jason Garrett-Glaser Date: Mon, 12 Oct 2009 18:29:23 +0000 (-0700) Subject: Fix regression: disable flash detection without B-frames X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=a65d36142b765516dd80a6bed5bff7444b24f4aa;p=x264.git Fix regression: disable flash detection without B-frames --- diff --git a/encoder/slicetype.c b/encoder/slicetype.c index 22a9ff1b..d27a0573 100644 --- a/encoder/slicetype.c +++ b/encoder/slicetype.c @@ -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 )