mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix crash drawing waveform with zero length sound, found looking into sound reading bug.
This commit is contained in:
parent
79f21f88c2
commit
1997cba227
1 changed files with 3 additions and 0 deletions
|
|
@ -187,6 +187,9 @@ static void drawseqwave(Scene *scene, Sequence *seq, float x1, float y1, float x
|
|||
if(!seq->sound->waveform)
|
||||
sound_read_waveform(seq->sound);
|
||||
|
||||
if(!seq->sound->waveform)
|
||||
return; /* zero length sound */
|
||||
|
||||
waveform = seq->sound->waveform;
|
||||
|
||||
startsample = floor((seq->startofs + seq->anim_startofs)/FPS * SOUND_WAVE_SAMPLES_PER_SECOND);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue