diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-05 10:53:04 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | e7d8e2b245491c0a8e008fb570037506d729ff04 (patch) | |
tree | d850a7f82cc02946f2e87b306d0b281cef5eb73d /shared/core-utils | |
parent | dd3f99434cc3cb7226d33ffcd888c91d0ce150a9 (diff) | |
download | PeerTube-e7d8e2b245491c0a8e008fb570037506d729ff04.tar.gz PeerTube-e7d8e2b245491c0a8e008fb570037506d729ff04.tar.zst PeerTube-e7d8e2b245491c0a8e008fb570037506d729ff04.zip |
Fix audio transcoding copy
Diffstat (limited to 'shared/core-utils')
-rw-r--r-- | shared/core-utils/videos/bitrate.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shared/core-utils/videos/bitrate.ts b/shared/core-utils/videos/bitrate.ts index 30d22df09..6be027826 100644 --- a/shared/core-utils/videos/bitrate.ts +++ b/shared/core-utils/videos/bitrate.ts | |||
@@ -40,7 +40,7 @@ const maxBitPerPixel: BitPerPixel = { | |||
40 | [VideoResolution.H_4K]: 0.14 | 40 | [VideoResolution.H_4K]: 0.14 |
41 | } | 41 | } |
42 | 42 | ||
43 | function getAverageBitrate (options: { | 43 | function getAverageTheoreticalBitrate (options: { |
44 | resolution: VideoResolution | 44 | resolution: VideoResolution |
45 | ratio: number | 45 | ratio: number |
46 | fps: number | 46 | fps: number |
@@ -51,7 +51,7 @@ function getAverageBitrate (options: { | |||
51 | return targetBitrate | 51 | return targetBitrate |
52 | } | 52 | } |
53 | 53 | ||
54 | function getMaxBitrate (options: { | 54 | function getMaxTheoreticalBitrate (options: { |
55 | resolution: VideoResolution | 55 | resolution: VideoResolution |
56 | ratio: number | 56 | ratio: number |
57 | fps: number | 57 | fps: number |
@@ -62,7 +62,7 @@ function getMaxBitrate (options: { | |||
62 | return targetBitrate | 62 | return targetBitrate |
63 | } | 63 | } |
64 | 64 | ||
65 | function getMinLimitBitrate (options: { | 65 | function getMinTheoreticalBitrate (options: { |
66 | resolution: VideoResolution | 66 | resolution: VideoResolution |
67 | ratio: number | 67 | ratio: number |
68 | fps: number | 68 | fps: number |
@@ -76,9 +76,9 @@ function getMinLimitBitrate (options: { | |||
76 | // --------------------------------------------------------------------------- | 76 | // --------------------------------------------------------------------------- |
77 | 77 | ||
78 | export { | 78 | export { |
79 | getAverageBitrate, | 79 | getAverageTheoreticalBitrate, |
80 | getMaxBitrate, | 80 | getMaxTheoreticalBitrate, |
81 | getMinLimitBitrate | 81 | getMinTheoreticalBitrate |
82 | } | 82 | } |
83 | 83 | ||
84 | // --------------------------------------------------------------------------- | 84 | // --------------------------------------------------------------------------- |