diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-21 06:08:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-21 06:12:58 +0300 |
commit | dfefafa814dd8daf1fe0e49f48e5ddbf6435bbfe (patch) | |
tree | 7f8a885ec55fcf22ce5ba6ab3e67dd604dd7a437 /source/blender/makesdna/DNA_sequence_types.h | |
parent | fce3e6646e859d769b19b4253c753dca6c4849af (diff) |
Fix uninitialized memory use loading movie sequence strips
When the movie wasn't found, uninitialized values would be used for
the original width/height.
Also use int instead of float as the image size is stored as an int.
Diffstat (limited to 'source/blender/makesdna/DNA_sequence_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_sequence_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h index 4211c913a0c..fa11a7dfd13 100644 --- a/source/blender/makesdna/DNA_sequence_types.h +++ b/source/blender/makesdna/DNA_sequence_types.h @@ -55,6 +55,7 @@ typedef struct StripAnim { typedef struct StripElem { char name[256]; + /** Ignore when zeroed. */ int orig_width, orig_height; } StripElem; |