From a946998f73d817b3230eca6fe16cdbedec05b0eb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 2 Dec 2021 00:30:59 +0100 Subject: [PATCH] Fix -t parameter to possibly be a float. --- hacks/make_dummy_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hacks/make_dummy_files b/hacks/make_dummy_files index 21cb1fd58..3dce41cf8 100755 --- a/hacks/make_dummy_files +++ b/hacks/make_dummy_files @@ -104,7 +104,7 @@ for c in root.find('Playlist').findall('Content'): audio_frame_rate = int(c.find('AudioStream').find('FrameRate').text) names = { 1: 'mono', 2: 'stereo', 3: '3.0', 4: '4.0', 5: '4.1', 6: '5.1', 7: '6.1', 8: '7.1' } audio_cmd = '-f lavfi -i anullsrc=channel_layout=%s:sample_rate=%d' % (names[audio_channels], audio_frame_rate) - os.system('ffmpeg -t %d %s %s -shortest "%s"' % (float(video_length) / video_frame_rate, video_cmd, audio_cmd, path)) + os.system('ffmpeg -t %f %s %s -shortest "%s"' % (float(video_length) / video_frame_rate, video_cmd, audio_cmd, path)) c.find('Path').text = path c.find('Digest').text = digest_head_tail(path) elif type == 'Image': -- 2.30.2