mirror of
https://github.com/game-stop/veejay.git
synced 2026-01-06 15:05:28 +01:00
fix segfault in fx anim parameter selection (curve length cannot be 0)
This commit is contained in:
@@ -2823,6 +2823,11 @@ static void vj_kf_select_parameter(int num)
|
||||
hi = info->status_tokens[SAMPLE_MARKER_END];
|
||||
}
|
||||
|
||||
if( lo == 0 && hi == 0 ) {
|
||||
lo = 0;
|
||||
hi = info->status_tokens[TOTAL_FRAMES];
|
||||
}
|
||||
|
||||
set_initial_curve( info->curve, entry_tokens[ENTRY_FXID], info->uc.selected_parameter_id,
|
||||
lo, hi ,
|
||||
entry_tokens[ ENTRY_P0 + info->uc.selected_parameter_id ] );
|
||||
|
||||
Reference in New Issue
Block a user