Fix crash when moving retimed sound strip

Crash happened, when strip start frame has negative value.
Sound properties can not be animated in negative frames.
This commit is contained in:
Richard Antalik
2023-09-07 03:54:33 +02:00
parent e86211cded
commit 1fb692e896

View File

@@ -797,6 +797,9 @@ void SEQ_retiming_sound_animation_data_set(const Scene *scene, const Sequence *s
}
}
else {
const int range_start = max_ii(0, range.start);
const int range_end = max_ii(0, range.end);
BKE_sound_set_scene_sound_pitch_constant_range(
seq->scene_sound, range.start, range.end, range.speed);
}