]> granicus.if.org Git - libvpx/commitdiff
vpxdec.sh: Fix some style nits.
authorTom Finegan <tomfinegan@google.com>
Fri, 15 Aug 2014 20:58:58 +0000 (13:58 -0700)
committerTom Finegan <tomfinegan@google.com>
Fri, 15 Aug 2014 21:20:47 +0000 (14:20 -0700)
Change-Id: I960c26dcb0db230e50f923d00f64ded1a39bf783

test/vpxdec.sh

index a7bee7c6ac11029bc788e626d4aca873a7366fff..f92acbd66bfa810833320f1db6464c8b52e57dd9 100755 (executable)
@@ -31,8 +31,8 @@ vpxdec_verify_environment() {
 # input file path and shifted away. All remaining parameters are passed through
 # to vpxdec.
 vpxdec_pipe() {
-  local decoder="$(vpx_tool_path vpxdec)"
-  local input="$1"
+  local readonly decoder="$(vpx_tool_path vpxdec)"
+  local readonly input="$1"
   shift
   cat "${input}" | eval "${VPX_TEST_PREFIX}" "${decoder}" - "$@" ${devnull}
 }
@@ -41,8 +41,8 @@ vpxdec_pipe() {
 # the directory containing vpxdec. $1 one is used as the input file path and
 # shifted away. All remaining parameters are passed through to vpxdec.
 vpxdec() {
-  local decoder="$(vpx_tool_path vpxdec)"
-  local input="${1}"
+  local readonly decoder="$(vpx_tool_path vpxdec)"
+  local readonly input="$1"
   shift
   eval "${VPX_TEST_PREFIX}" "${decoder}" "$input" "$@" ${devnull}
 }