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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-02-28 19:33:29 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-02-28 19:33:29 +0400
commit08f737c3b96d0f9233df768ec008585a9c7d2285 (patch)
treec0e712e1b207c4a5065c3215bedce9145eae076f /source
parent537c18a9ce7fa8614f02f3268794b45f697e3f62 (diff)
Fix #34390: quicktime video codec menu showing blank. It's a small miracle
that this code worked at all at some point.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index bca52c877f3..e635280b07a 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -909,16 +909,13 @@ static EnumPropertyItem *rna_RenderSettings_qtcodecsettings_codecType_itemf(bCon
EnumPropertyItem tmp = {0, "", 0, "", ""};
QuicktimeCodecTypeDesc *codecTypeDesc;
int i = 1, totitem = 0;
- char id[5];
-
+
for (i = 0; i < quicktime_get_num_videocodecs(); i++) {
codecTypeDesc = quicktime_get_videocodecType_desc(i);
if (!codecTypeDesc) break;
-
+
tmp.value = codecTypeDesc->rnatmpvalue;
- *((int *)id) = codecTypeDesc->codecType;
- id[4] = 0;
- tmp.identifier = id;
+ tmp.identifier = codecTypeDesc->codecName;
tmp.name = codecTypeDesc->codecName;
RNA_enum_item_add(&item, &totitem, &tmp);
}