fftools/ffmpeg_enc: merge -force_key_frames source/source_no_drop
Always use the functionality of the latter, which makes more sense as it avoids losing keyframes due to vsync code dropping frames. Deprecate the 'source_no_drop' value, as it is now redundant.
This commit is contained in:
@@ -1093,10 +1093,7 @@ static enum AVPictureType forced_kf_apply(void *logctx, KeyframeForceCtx *kf,
|
||||
kf->expr_const_values[FKF_N_FORCED] += 1;
|
||||
goto force_keyframe;
|
||||
}
|
||||
} else if (kf->type == KF_FORCE_SOURCE &&
|
||||
(in_picture->flags & AV_FRAME_FLAG_KEY) && !dup_idx) {
|
||||
goto force_keyframe;
|
||||
} else if (kf->type == KF_FORCE_SOURCE_NO_DROP && !dup_idx) {
|
||||
} else if (kf->type == KF_FORCE_SOURCE && !dup_idx) {
|
||||
int dropped_keyframe = kf->dropped_keyframe;
|
||||
kf->dropped_keyframe = 0;
|
||||
if ((in_picture->flags & AV_FRAME_FLAG_KEY) || dropped_keyframe)
|
||||
|
||||
Reference in New Issue
Block a user