Fix scale_vaapi (#91)

* Fix scale_vaapi
pull/94/head 2.3
Alex 3 years ago committed by GitHub
parent d4e0e4d93d
commit f4bb2e223c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -73,7 +73,7 @@ fix_args() {
scale_w=$(echo "$arg" | sed -e 's/.*=w=//g' | sed -e 's/:h=.*//g')
# shellcheck disable=SC2001
scale_h=$(echo "$arg" | sed -e 's/.*:h=//g')
if [[ "$scale_w" != "" && "$scale_h" != "" ]]; then
if (( scale_w && scale_h )); then
arg="scale_vaapi=w=$scale_w:h=$scale_h:format=nv12,hwupload,setsar=sar=1"
else
arg="scale_vaapi=format=nv12,hwupload,setsar=sar=1"

Loading…
Cancel
Save