Commit a0b07e91 authored by Fiona Glaser's avatar Fiona Glaser

Fix regression: disable flash detection without B-frames

parent 1fbba0ca
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment