From 74735e6add72da8a77e0fa4a97450039c616ab81 Mon Sep 17 00:00:00 2001
From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Sun, 24 Mar 2024 21:29:00 +0000
Subject: [PATCH] [encoder_audio_ac3] v0.0.7
---
source/encoder_audio_ac3/changelog.md | 3 +++
source/encoder_audio_ac3/info.json | 2 +-
source/encoder_audio_ac3/plugin.py | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/source/encoder_audio_ac3/changelog.md b/source/encoder_audio_ac3/changelog.md
index 3aa43e78a..e729a8d6d 100644
--- a/source/encoder_audio_ac3/changelog.md
+++ b/source/encoder_audio_ac3/changelog.md
@@ -1,4 +1,7 @@
+**0.0.7**
+- fix stray character in custom stream mapping function
+
**0.0.6**
- add an '-ac` parameter to encoder to avoid unsupported channel layout error when normalizing 6 channel streams
diff --git a/source/encoder_audio_ac3/info.json b/source/encoder_audio_ac3/info.json
index b7d7871d0..810536a6d 100644
--- a/source/encoder_audio_ac3/info.json
+++ b/source/encoder_audio_ac3/info.json
@@ -15,5 +15,5 @@
"on_worker_process": 0
},
"tags": "audio,encoder,ffmpeg,library file test",
- "version": "0.0.6"
+ "version": "0.0.7"
}
diff --git a/source/encoder_audio_ac3/plugin.py b/source/encoder_audio_ac3/plugin.py
index eb1c0c2ad..523b0c006 100644
--- a/source/encoder_audio_ac3/plugin.py
+++ b/source/encoder_audio_ac3/plugin.py
@@ -170,7 +170,7 @@ def custom_stream_mapping(self, stream_info: dict, stream_id: int):
if stream_info.get('channels'):
# Use 64K for the bitrate per channel
calculated_bitrate = self.calculate_bitrate(stream_info)
- channels = int()stream_info.get('channels'))
+ channels = int(stream_info.get('channels'))
stream_encoding += [
'-ac:a:{}'.format(stream_id), '{}'.format(channels), '-b:a:{}'.format(stream_id), "{}k".format(calculated_bitrate)
]