From: Fiona Glaser Date: Mon, 12 Oct 2009 18:29:23 +0000 (-0700) Subject: Fix regression: disable flash detection without B-frames X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0b07e91d128b91eb6bef7189e79a3f14f39af3d;p=libx264 Fix regression: disable flash detection without B-frames --- diff --git a/encoder/slicetype.c b/encoder/slicetype.c index ee66f2e4..e4bd0052 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 )