Skip to content
Snippets Groups Projects
Commit 06ad4d64 authored by Campbell Barton's avatar Campbell Barton Committed by Philipp Oeser
Browse files

4.2 backport: Fix fake_retiming_key_init returning uninitialized stack memory

Back-port [0] from main.

[0]: 630eff9b

Pull Request: https://projects.blender.org/blender/blender/pulls/127672
parent a2d02063
Branches
Tags
No related merge requests found
...@@ -348,7 +348,7 @@ static bool fake_keys_draw(const bContext *C, ...@@ -348,7 +348,7 @@ static bool fake_keys_draw(const bContext *C,
int right_key_frame = right_fake_key_frame_get(C, seq); int right_key_frame = right_fake_key_frame_get(C, seq);
if (SEQ_retiming_key_get_by_timeline_frame(scene, seq, left_key_frame) == nullptr) { if (SEQ_retiming_key_get_by_timeline_frame(scene, seq, left_key_frame) == nullptr) {
SeqRetimingKey fake_key; SeqRetimingKey fake_key = {0};
fake_key.strip_frame_index = (left_key_frame - SEQ_time_start_frame_get(seq)) * fake_key.strip_frame_index = (left_key_frame - SEQ_time_start_frame_get(seq)) *
SEQ_time_media_playback_rate_factor_get(scene, seq); SEQ_time_media_playback_rate_factor_get(scene, seq);
fake_key.flag = 0; fake_key.flag = 0;
...@@ -363,7 +363,7 @@ static bool fake_keys_draw(const bContext *C, ...@@ -363,7 +363,7 @@ static bool fake_keys_draw(const bContext *C,
right_key_frame += 1; right_key_frame += 1;
} }
SeqRetimingKey fake_key; SeqRetimingKey fake_key = {0};
fake_key.strip_frame_index = (right_key_frame - SEQ_time_start_frame_get(seq)) * fake_key.strip_frame_index = (right_key_frame - SEQ_time_start_frame_get(seq)) *
SEQ_time_media_playback_rate_factor_get(scene, seq); SEQ_time_media_playback_rate_factor_get(scene, seq);
fake_key.flag = 0; fake_key.flag = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment