summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2013-09-02 19:50:32 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2013-09-02 19:50:32 -0400
commit0778a73c554eaf3fb876804acec6d2fcb9879cc8 (patch)
tree473b9c090dcec0580193cf66344dc126c04db45b
parentb9adb183fccdc38dc329cb6e27b2a674b6803a81 (diff)
downloadhtml5ks-0778a73c554eaf3fb876804acec6d2fcb9879cc8.tar.xz
html5ks-0778a73c554eaf3fb876804acec6d2fcb9879cc8.zip
fix minor bugs
-rwxr-xr-xiencode.sh4
-rwxr-xr-xvencode.sh2
-rw-r--r--www/js/api.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/iencode.sh b/iencode.sh
index 460db3b..34ce458 100755
--- a/iencode.sh
+++ b/iencode.sh
@@ -25,8 +25,8 @@ iencode jpg 90
iencode png 99
if hash zopflipng; then
- find . -name \*.png -print0 | xargs -0 -I '{}' -P ${THREADS} zopflipng -my '{}' '{}'
+ find . -name \*.png -print0 | xargs -0 -I '{}' -P ${THREADS} zopflipng -m -y '{}' '{}'
else
echo >&2 "Install zopfli (https://code.google.com/p/zopfli/) to improve PNG compression."
- echo >&2 "Approximately 2% savings can be seen across the board, with no cost to quality."
+ echo >&2 "Approximately 0.01% savings can be seen across the board, with no cost to quality."
fi
diff --git a/vencode.sh b/vencode.sh
index 472fc06..2b8233e 100755
--- a/vencode.sh
+++ b/vencode.sh
@@ -11,7 +11,7 @@ cd $(dirname $0)/www/dump/video
ffmpeg() {
set -x
- command ${FFMPEG} -n -threads ${THREADS} ${FFMPEG_FLAGS} "$@"
+ command ${FFMPEG} -threads ${THREADS} ${FFMPEG_FLAGS} "$@"
set +x
}
diff --git a/www/js/api.js b/www/js/api.js
index ed5b387..fae899e 100644
--- a/www/js/api.js
+++ b/www/js/api.js
@@ -40,7 +40,7 @@ window.html5ks.api = {
}
html5ks.elements.audio[channel] = audio;
- var src = "dump/" + channel === "music" ? html5ks.data.music[name] : html5ks.data.sfx[name];
+ var src = "dump/" + (channel === "music" ? html5ks.data.music[name] : html5ks.data.sfx[name]);
if (Modernizr.audio.opus) {
audio.src = src + ".opus";
} else if (Modernizr.audio.ogg) {