summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-04 04:20:07 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-04 04:20:07 +0200
commit9e402cab8b7b4d958ecf6fbb7ed4b38b01b558c1 (patch)
treed75bcccb3508a63411d61e6ee1f4e70355bbee1d /localvideowebencode
parent411505463a016a19e4279048714bb08fe744aa4d (diff)
Fix avoid bogusly setting empty VP8/VP9 fallback bitrate.
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode2
1 files changed, 0 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode
index fa958f0..74a1283 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -377,8 +377,6 @@ if [ -n "$_pixels" ] && [ $_pixels -ge $((1024*768)) ]; then
fi
# compute average bitrate from reference data and "power of .75" rule
-bitrate_vp8="$bitrate"
-bitrate_vp9="$bitrate"
if [ -n "$_pixels" ] && [ -n "$_frames" ]; then
bitrate=$(perl -E '$refsize=640*360;' \
-E "say int( +(($_pixels/\$refsize)**0.75*\$refsize*$_frames*$refbpp) )")