Fixed a float value used for volume where it expected an integer

This commit is contained in:
Sergio Costas 2016-09-05 23:43:13 +02:00
parent 177f0de758
commit 361240adc4
4 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,7 @@
## History of versions ## ## History of versions ##
* version 4.8.1 (2016-09-05)
* Fixed a float value used for volume where it expected an integer
* version 4.8.0 (2016-08-12) * version 4.8.0 (2016-08-12)
* Fixed a division by zero when a clip has a duration of less than one second * Fixed a division by zero when a clip has a duration of less than one second

View file

@ -64,7 +64,7 @@ except:
setup( setup(
name='devedeng', name='devedeng',
version='4.8.0', version='4.8.1',
description='A video DVD creator', description='A video DVD creator',
long_description = "A program that allows to create video DVDs", long_description = "A program that allows to create video DVDs",

View file

@ -144,7 +144,7 @@ class avconv(devedeng.avbase.avbase):
if (file_project.volume!=100) and second_pass: if (file_project.volume!=100) and second_pass:
self.command_var.append("-vol") self.command_var.append("-vol")
self.command_var.append(str((256*file_project.volume)/100)) self.command_var.append(str(int((256*file_project.volume)/100)))
if (file_project.audio_delay != 0.0) and (file_project.copy_sound==False) and (file_project.no_reencode_audio_video==False) and second_pass: if (file_project.audio_delay != 0.0) and (file_project.copy_sound==False) and (file_project.no_reencode_audio_video==False) and second_pass:
self.command_var.append("-itsoffset") self.command_var.append("-itsoffset")

View file

@ -140,7 +140,7 @@ class ffmpeg(devedeng.executor.executor):
if (file_project.volume!=100) and second_pass: if (file_project.volume!=100) and second_pass:
self.command_var.append("-vol") self.command_var.append("-vol")
self.command_var.append(str((256*file_project.volume)/100)) self.command_var.append(str(int((256*file_project.volume)/100)))
if (file_project.audio_delay != 0.0) and (file_project.copy_sound==False) and (file_project.no_reencode_audio_video==False) and second_pass: if (file_project.audio_delay != 0.0) and (file_project.copy_sound==False) and (file_project.no_reencode_audio_video==False) and second_pass:
self.command_var.append("-itsoffset") self.command_var.append("-itsoffset")