[Bf-blender-cvs] [cc2faa4] master: Fix T49172: mixdown sound op not exporting full length
Jörg Müller
noreply at git.blender.org
Mon Aug 29 11:19:32 CEST 2016
Commit: cc2faa409fc8508fb0131bdc344651f2863957f6
Author: Jörg Müller
Date: Mon Aug 29 10:54:32 2016 +0200
Branches: master
https://developer.blender.org/rBcc2faa409fc8508fb0131bdc344651f2863957f6
Fix T49172: mixdown sound op not exporting full length
Thanks Flavio Perez for the fix.
===================================================================
M source/blender/editors/sound/sound_ops.c
===================================================================
diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c
index 03f2e14..ac3fc76 100644
--- a/source/blender/editors/sound/sound_ops.c
+++ b/source/blender/editors/sound/sound_ops.c
@@ -348,10 +348,10 @@ static int sound_mixdown_exec(bContext *C, wmOperator *op)
BLI_path_abs(filename, bmain->name);
if (split)
- result = AUD_mixdown_per_channel(scene->sound_scene, SFRA * specs.rate / FPS, (EFRA - SFRA) * specs.rate / FPS,
+ result = AUD_mixdown_per_channel(scene->sound_scene, SFRA * specs.rate / FPS, (EFRA - SFRA + 1) * specs.rate / FPS,
accuracy, filename, specs, container, codec, bitrate);
else
- result = AUD_mixdown(scene->sound_scene, SFRA * specs.rate / FPS, (EFRA - SFRA) * specs.rate / FPS,
+ result = AUD_mixdown(scene->sound_scene, SFRA * specs.rate / FPS, (EFRA - SFRA + 1) * specs.rate / FPS,
accuracy, filename, specs, container, codec, bitrate);
if (result) {
More information about the Bf-blender-cvs
mailing list