From a0b07e91d128b91eb6bef7189e79a3f14f39af3d Mon Sep 17 00:00:00 2001 From: Fiona Glaser Date: Mon, 12 Oct 2009 11:29:23 -0700 Subject: [PATCH] Fix regression: disable flash detection without B-frames --- encoder/slicetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.50.1