vpxdec.sh: Fix some style nits.

Change-Id: I960c26dcb0db230e50f923d00f64ded1a39bf783
This commit is contained in:
Tom Finegan 2014-08-15 13:58:58 -07:00
parent 250fc1f6a2
commit b77ef13d89

View File

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