Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-21 06:08:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-21 06:12:58 +0300
commitdfefafa814dd8daf1fe0e49f48e5ddbf6435bbfe (patch)
tree7f8a885ec55fcf22ce5ba6ab3e67dd604dd7a437 /source/blender/makesdna/DNA_sequence_types.h
parentfce3e6646e859d769b19b4253c753dca6c4849af (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.h1
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;