Probably the cause of crash seen in nightly builds
fixes https://github.com/HandBrake/HandBrake/issues/597
hb_dict_extract_int(&pv->cfr, filter->settings, "mode");
hb_dict_extract_rational(&pv->vrate, filter->settings, "rate");
- // By default, we need at least 4 delay frames in order to smooth
- // timestamp values
- pv->frame_analysis_depth = 1;
+ // frame-drop analysis always looks at at least 2 buffers
+ pv->frame_analysis_depth = 2;
// Calculate the number of frames we need to keep in order to
// detect "best" candidate frames to drop.