diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-11 14:40:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-11 14:40:53 +0200 |
commit | 5ac64497351d92077b03c13b840933161b96ec19 (patch) | |
tree | 9762e11fa0a814103eeccb0350ca87eb4cace388 /server/lib/transcoding | |
parent | 9fb2ed5f83f52155ce1f4ec20c049527c358c11b (diff) | |
download | PeerTube-5ac64497351d92077b03c13b840933161b96ec19.tar.gz PeerTube-5ac64497351d92077b03c13b840933161b96ec19.tar.zst PeerTube-5ac64497351d92077b03c13b840933161b96ec19.zip |
Remove useless condition
Diffstat (limited to 'server/lib/transcoding')
-rw-r--r-- | server/lib/transcoding/video-transcoding-profiles.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/transcoding/video-transcoding-profiles.ts b/server/lib/transcoding/video-transcoding-profiles.ts index a8176dca5..bf1b8769b 100644 --- a/server/lib/transcoding/video-transcoding-profiles.ts +++ b/server/lib/transcoding/video-transcoding-profiles.ts | |||
@@ -65,7 +65,7 @@ const defaultAACOptionsBuilder: EncoderOptionsBuilder = async ({ input, streamNu | |||
65 | 65 | ||
66 | logger.debug('Calculating audio bitrate of %s by AAC encoder.', input, { bitrate: parsedAudio.bitrate, audioCodecName }) | 66 | logger.debug('Calculating audio bitrate of %s by AAC encoder.', input, { bitrate: parsedAudio.bitrate, audioCodecName }) |
67 | 67 | ||
68 | if (bitrate !== undefined && bitrate !== -1) { | 68 | if (bitrate !== -1) { |
69 | return { outputOptions: [ buildStreamSuffix('-b:a', streamNum), bitrate + 'k' ] } | 69 | return { outputOptions: [ buildStreamSuffix('-b:a', streamNum), bitrate + 'k' ] } |
70 | } | 70 | } |
71 | 71 | ||